home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-04-27 | 1.5 MB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Jul 15 17:29:39 1993, modified Wed Apr 27 06:16:28 1994, creator 'HLX2', type 'ONLN', 1475013 bytes "TN-Toolbox" , at 0x168245 47576 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 4e 2d 54 6f 6f | 6c 62 6f 78 00 00 00 00 |..TN-Too|lbox....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 16 81 c5 00 | 00 b9 d8 a8 6b 7c c3 a9 |........|....k|..|
|00000060| e3 eb fc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cc ae 00 00 |........|........|
|00000080| 54 42 20 31 20 2d 20 42 | 75 6e 64 6c 65 73 0d 54 |TB 1 - B|undles.T|
|00000090| 6f 6f 6c 62 6f 78 09 0d | 52 65 76 69 73 65 64 20 |oolbox..|Revised |
|000000a0| 62 79 3a 09 09 4d 61 72 | 63 68 20 31 39 38 38 0d |by:..Mar|ch 1988.|
|000000b0| 57 72 69 74 74 65 6e 20 | 62 79 3a 09 47 69 6e 67 |Written |by:.Ging|
|000000c0| 65 72 20 4a 65 72 6e 69 | 67 61 6e 09 4e 6f 76 65 |er Jerni|gan.Nove|
|000000d0| 6d 62 65 72 20 31 39 38 | 38 0d 54 68 69 73 20 6e |mber 198|8.This n|
|000000e0| 6f 74 65 20 64 65 73 63 | 72 69 62 65 73 20 77 68 |ote desc|ribes wh|
|000000f0| 61 74 20 61 20 62 75 6e | 64 6c 65 20 69 73 20 61 |at a bun|dle is a|
|00000100| 6e 64 20 68 6f 77 20 74 | 6f 20 63 72 65 61 74 65 |nd how t|o create|
|00000110| 20 6f 6e 65 2e 0d 41 20 | 62 75 6e 64 6c 65 20 69 | one..A |bundle i|
|00000120| 73 20 61 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 6f |s a coll|ection o|
|00000130| 66 20 72 65 73 6f 75 72 | 63 65 73 2e 20 42 75 6e |f resour|ces. Bun|
|00000140| 64 6c 65 73 20 63 61 6e | 20 62 65 20 75 73 65 64 |dles can| be used|
|00000150| 20 66 6f 72 20 61 20 6e | 75 6d 62 65 72 20 6f 66 | for a n|umber of|
|00000160| 20 64 69 66 66 65 72 65 | 6e 74 20 70 75 72 70 6f | differe|nt purpo|
|00000170| 73 65 73 2c 20 61 6e 64 | 20 61 72 65 20 63 75 72 |ses, and| are cur|
|00000180| 72 65 6e 74 6c 79 20 75 | 73 65 64 20 62 79 20 74 |rently u|sed by t|
|00000190| 68 65 20 46 69 6e 64 65 | 72 20 69 74 6f 20 74 69 |he Finde|r ito ti|
|000001a0| 65 20 61 6e 20 69 63 6f | 6e 20 74 6f 20 61 20 66 |e an ico|n to a f|
|000001b0| 69 6c 65 20 74 79 70 65 | 2c 20 61 6c 6c 6f 77 69 |ile type|, allowi|
|000001c0| 6e 67 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |ng your |applicat|
|000001d0| 69 6f 6e 20 6f 72 20 64 | 61 74 61 20 66 69 6c 65 |ion or d|ata file|
|000001e0| 20 74 6f 20 68 61 76 65 | 20 69 74 73 20 6f 77 6e | to have| its own|
|000001f0| 20 69 63 6f 6e 2e 0d 48 | 6f 77 20 74 6f 20 43 72 | icon..H|ow to Cr|
|00000200| 65 61 74 65 20 61 20 42 | 75 6e 64 6c 65 0d 41 20 |eate a B|undle.A |
|00000210| 62 75 6e 64 6c 65 20 69 | 73 20 61 20 63 6f 6c 6c |bundle i|s a coll|
|00000220| 65 63 74 69 6f 6e 20 6f | 66 20 72 65 73 6f 75 72 |ection o|f resour|
|00000230| 63 65 73 2e 20 54 6f 20 | 6d 61 6b 65 20 61 20 62 |ces. To |make a b|
|00000240| 75 6e 64 6c 65 20 66 6f | 72 20 66 69 6e 64 65 72 |undle fo|r finder|
|00000250| 20 69 63 6f 6e 73 2c 20 | 77 65 20 6e 65 65 64 20 | icons, |we need |
|00000260| 74 6f 20 73 65 74 20 75 | 70 20 66 6f 75 72 20 74 |to set u|p four t|
|00000270| 79 70 65 73 20 6f 66 20 | 72 65 73 6f 75 72 63 65 |ypes of |resource|
|00000280| 73 3a 20 61 6e 20 49 43 | 4e 23 2c 20 61 6e 20 46 |s: an IC|N#, an F|
|00000290| 52 45 46 2c 20 61 20 63 | 72 65 61 74 6f 72 20 53 |REF, a c|reator S|
|000002a0| 54 52 20 61 6e 64 20 61 | 20 42 4e 44 4c 2e 0d 54 |TR and a| BNDL..T|
|000002b0| 68 65 20 49 43 4e 23 20 | 72 65 73 6f 75 72 63 65 |he ICN# |resource|
|000002c0| 20 74 79 70 65 20 69 73 | 20 61 6e 20 69 63 6f 6e | type is| an icon|
|000002d0| 20 6c 69 73 74 2e 20 45 | 61 63 68 20 49 43 4e 23 | list. E|ach ICN#|
|000002e0| 20 72 65 73 6f 75 72 63 | 65 20 63 6f 6e 74 61 69 | resourc|e contai|
|000002f0| 6e 73 20 6f 6e 65 20 6f | 72 20 6d 6f 72 65 20 69 |ns one o|r more i|
|00000300| 63 6f 6e 73 2c 20 6f 6e | 20 61 66 74 65 72 20 61 |cons, on| after a|
|00000310| 6e 6f 74 68 65 72 2e 20 | 46 6f 72 20 46 69 6e 64 |nother. |For Find|
|00000320| 65 72 20 62 75 6e 64 6c | 65 20 69 63 6f 6e 73 2c |er bundl|e icons,|
|00000330| 20 74 68 65 72 65 20 61 | 72 65 20 74 77 6f 20 69 | there a|re two i|
|00000340| 63 6f 6e 73 20 69 6e 20 | 65 61 63 68 20 49 43 4e |cons in |each ICN|
|00000350| 23 3a 20 6f 6e 65 20 66 | 6f 72 20 74 68 65 20 69 |#: one f|or the i|
|00000360| 63 6f 6e 20 69 74 73 65 | 6c 66 20 61 6e 64 20 6f |con itse|lf and o|
|00000370| 6e 65 20 66 6f 72 20 74 | 68 65 20 6d 61 73 6b 2e |ne for t|he mask.|
|00000380| 20 49 6e 20 6f 75 72 20 | 73 61 6d 70 6c 65 20 62 | In our |sample b|
|00000390| 75 6e 64 6c 65 2c 20 77 | 65 20 68 61 76 65 20 74 |undle, w|e have t|
|000003a0| 77 6f 20 66 69 6c 65 20 | 74 79 70 65 73 2c 20 65 |wo file |types, e|
|000003b0| 61 63 68 20 77 69 74 68 | 20 69 74 73 20 6f 77 6e |ach with| its own|
|000003c0| 20 69 63 6f 6e 2e 20 54 | 6f 20 64 65 66 69 6e 65 | icon. T|o define|
|000003d0| 20 74 68 65 20 69 63 6f | 6e 73 20 66 6f 72 20 74 | the ico|ns for t|
|000003e0| 68 65 73 65 20 66 69 6c | 65 73 20 77 65 20 77 6f |hese fil|es we wo|
|000003f0| 75 6c 64 20 65 6e 74 65 | 72 20 74 68 69 73 20 69 |uld ente|r this i|
|00000400| 6e 74 6f 20 6f 75 72 20 | 52 65 7a 20 69 6e 70 75 |nto our |Rez inpu|
|00000410| 74 20 66 69 6c 65 3a 0d | 09 72 65 73 6f 75 72 63 |t file:.|.resourc|
|00000420| 65 20 27 49 43 4e 23 27 | 20 28 37 33 32 29 20 7b |e 'ICN#'| (732) {|
|00000430| 20 2f 2a 20 66 69 72 73 | 74 20 69 63 6f 6e 3a 20 | /* firs|t icon: |
|00000440| 74 68 65 20 49 44 20 6e | 75 6d 62 65 72 20 63 61 |the ID n|umber ca|
|00000450| 6e 20 62 65 20 61 6e 79 | 74 68 69 6e 67 20 2a 2f |n be any|thing */|
|00000460| 0d 09 20 20 20 7b 20 20 | 20 20 20 20 20 20 20 20 |.. { | |
|00000470| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 66 69 72 | | /* fir|
|00000480| 73 74 2c 20 74 68 65 20 | 69 63 6f 6e 20 2a 2f 0d |st, the |icon */.|
|00000490| 09 20 20 20 20 20 20 24 | 22 46 46 20 46 46 20 46 |. $|"FF FF F|
|000004a0| 46 20 46 46 22 20 20 20 | 20 2f 2a 20 65 61 63 68 |F FF" | /* each|
|000004b0| 20 6c 69 6e 65 20 69 73 | 20 34 20 62 79 74 65 73 | line is| 4 bytes|
|000004c0| 20 28 33 32 20 62 69 74 | 73 29 20 2a 2f 0d 09 20 | (32 bit|s) */.. |
|000004d0| 20 20 20 20 20 24 22 46 | 30 20 30 39 20 43 44 20 | $"F|0 09 CD |
|000004e0| 44 44 22 20 20 20 20 2f | 2a 20 33 32 20 6c 69 6e |DD" /|* 32 lin|
|000004f0| 65 73 20 74 6f 74 61 6c | 20 66 6f 72 20 69 63 6f |es total| for ico|
|00000500| 6e 20 2a 2f 0d 09 20 20 | 20 20 20 20 2e 2e 2e 0d |n */.. | ....|
|00000510| 09 20 20 20 20 20 20 24 | 22 46 46 20 46 46 20 46 |. $|"FF FF F|
|00000520| 46 20 46 46 22 20 20 20 | 20 2f 2a 20 33 32 6e 64 |F FF" | /* 32nd|
|00000530| 20 6c 69 6e 65 20 6f 66 | 20 69 63 6f 6e 20 2a 2f | line of| icon */|
|00000540| 0d 09 20 20 20 20 20 20 | 2c 20 20 20 20 20 20 20 |.. |, |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 6e 6f 77 | | /* now|
|00000560| 2c 20 74 68 65 20 6d 61 | 73 6b 20 2a 2f 0d 09 20 |, the ma|sk */.. |
|00000570| 20 20 20 20 20 24 22 46 | 46 20 46 46 20 46 46 20 | $"F|F FF FF |
|00000580| 46 46 22 20 20 20 20 2f | 2a 20 33 32 20 6c 69 6e |FF" /|* 32 lin|
|00000590| 65 73 20 74 6f 74 61 6c | 20 66 6f 72 20 6d 61 73 |es total| for mas|
|000005a0| 6b 20 2a 2f 0d 09 20 20 | 20 20 20 20 24 22 46 46 |k */.. | $"FF|
|000005b0| 20 46 46 20 46 46 20 46 | 46 22 0d 09 20 20 20 20 | FF FF F|F".. |
|000005c0| 20 20 2e 2e 2e 0d 09 20 | 20 20 20 20 20 24 22 46 | ..... | $"F|
|000005d0| 46 20 46 46 20 46 46 20 | 46 46 22 20 20 20 20 2f |F FF FF |FF" /|
|000005e0| 2a 20 33 32 6e 64 20 6c | 69 6e 65 20 6f 66 20 6d |* 32nd l|ine of m|
|000005f0| 61 73 6b 2a 2f 0d 09 20 | 20 20 7d 0d 09 7d 3b 0d |ask*/.. | }..};.|
|00000600| 09 72 65 73 6f 75 72 63 | 65 20 27 49 43 4e 23 27 |.resourc|e 'ICN#'|
|00000610| 20 28 37 33 33 29 20 7b | 20 2f 2a 20 73 65 63 6f | (733) {| /* seco|
|00000620| 6e 64 20 69 63 6f 6e 20 | 2a 2f 0d 09 20 20 20 7b |nd icon |*/.. {|
|00000630| 0d 09 20 20 20 20 20 20 | 24 22 46 46 20 46 46 20 |.. |$"FF FF |
|00000640| 46 46 20 46 46 22 0d 09 | 20 20 20 20 20 20 2e 2e |FF FF"..| ..|
|00000650| 2e 0d 09 20 20 20 20 20 | 20 2c 0d 09 20 20 20 20 |... | ,.. |
|00000660| 20 20 24 22 46 46 20 46 | 46 20 46 46 20 46 46 22 | $"FF F|F FF FF"|
|00000670| 0d 09 20 20 20 20 20 20 | 2e 2e 2e 0d 09 20 20 20 |.. |..... |
|00000680| 7d 0d 09 7d 3b 0d 4e 6f | 77 20 74 68 61 74 20 77 |}..};.No|w that w|
|00000690| 65 d5 76 65 20 64 65 66 | 69 6e 65 64 20 6f 75 72 |e.ve def|ined our|
|000006a0| 20 69 63 6f 6e 73 20 77 | 65 20 63 61 6e 20 73 65 | icons w|e can se|
|000006b0| 74 20 75 70 20 74 68 65 | 20 46 52 45 46 73 2e 20 |t up the| FREFs. |
|000006c0| 41 6e 20 46 52 45 46 20 | 69 73 20 61 20 66 69 6c |An FREF |is a fil|
|000006d0| 65 20 74 79 70 65 20 72 | 65 66 65 72 65 6e 63 65 |e type r|eference|
|000006e0| 3b 20 79 6f 75 20 6e 65 | 65 64 20 6f 6e 65 20 66 |; you ne|ed one f|
|000006f0| 6f 72 20 65 61 63 68 20 | 66 69 6c 65 20 74 79 70 |or each |file typ|
|00000700| 65 20 74 68 61 74 20 68 | 61 73 20 61 6e 20 69 63 |e that h|as an ic|
|00000710| 6f 6e 2e 20 49 74 20 74 | 69 65 73 20 61 20 66 69 |on. It t|ies a fi|
|00000720| 6c 65 20 74 79 70 65 20 | 74 6f 20 61 20 6c 6f 63 |le type |to a loc|
|00000730| 61 6c 20 69 63 6f 6e 20 | 72 65 73 6f 75 72 63 65 |al icon |resource|
|00000740| 20 49 44 2e 20 54 68 69 | 73 20 77 69 6c 6c 20 62 | ID. Thi|s will b|
|00000750| 65 20 6d 61 70 70 65 64 | 20 62 79 20 74 68 65 20 |e mapped| by the |
|00000760| 42 4e 44 4c 20 6f 6e 74 | 6f 20 61 6e 20 61 63 74 |BNDL ont|o an act|
|00000770| 75 61 6c 20 72 65 73 6f | 75 72 63 65 20 49 44 20 |ual reso|urce ID |
|00000780| 6e 75 6d 62 65 72 20 6f | 66 20 61 6e 20 49 43 4e |number o|f an ICN|
|00000790| 23 20 72 65 73 6f 75 72 | 63 65 2e 20 4f 75 72 20 |# resour|ce. Our |
|000007a0| 46 52 45 46 73 20 77 69 | 6c 6c 20 6c 6f 6f 6b 20 |FREFs wi|ll look |
|000007b0| 6c 69 6b 65 20 74 68 69 | 73 3a 0d 09 72 65 73 6f |like thi|s:..reso|
|000007c0| 75 72 63 65 20 27 46 52 | 45 46 27 20 28 38 31 36 |urce 'FR|EF' (816|
|000007d0| 29 20 7b 20 2f 2a 20 66 | 69 6c 65 20 74 79 70 65 |) { /* f|ile type|
|000007e0| 20 72 65 66 65 72 65 6e | 63 65 20 66 6f 72 20 61 | referen|ce for a|
|000007f0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 63 6f 6e 20 |pplicati|on icon |
|00000800| 2a 2f 0d 09 20 20 20 7b | 0d 09 20 20 20 20 20 20 |*/.. {|.. |
|00000810| 27 41 50 50 4c 27 2c 20 | 36 30 35 2c 20 2f 2a 20 |'APPL', |605, /* |
|00000820| 74 68 65 20 74 79 70 65 | 20 69 73 20 41 50 50 4c |the type| is APPL|
|00000830| 28 69 63 61 74 69 6f 6e | 29 2c 20 74 68 65 20 6c |(ication|), the l|
|00000840| 6f 63 61 6c 20 49 44 20 | 69 73 20 36 30 35 20 2a |ocal ID |is 605 *|
|00000850| 2f 0d 09 20 20 20 20 20 | 20 22 22 20 20 20 20 20 |/.. | "" |
|00000860| 20 20 20 20 20 20 2f 2a | 20 74 68 69 73 20 73 74 | /*| this st|
|00000870| 72 69 6e 67 20 73 68 6f | 75 6c 64 20 62 65 20 65 |ring sho|uld be e|
|00000880| 6d 70 74 79 20 28 69 74 | 20 69 73 20 75 6e 75 73 |mpty (it| is unus|
|00000890| 65 64 29 20 2a 2f 0d 09 | 20 20 20 7d 0d 09 7d 3b |ed) */..| }..};|
|000008a0| 0d 09 72 65 73 6f 75 72 | 63 65 20 27 46 52 45 46 |..resour|ce 'FREF|
|000008b0| 27 20 28 38 31 37 29 20 | 7b 20 2f 2a 20 66 69 6c |' (817) |{ /* fil|
|000008c0| 65 20 74 79 70 65 20 72 | 65 66 65 72 65 6e 63 65 |e type r|eference|
|000008d0| 20 66 6f 72 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 | for a d|ocument |
|000008e0| 69 63 6f 6e 20 2a 2f 0d | 09 20 20 20 7b 0d 09 20 |icon */.|. {.. |
|000008f0| 20 20 20 20 20 27 54 45 | 58 54 27 2c 20 36 31 32 | 'TE|XT', 612|
|00000900| 2c 20 2f 2a 20 74 68 65 | 20 74 79 70 65 20 69 73 |, /* the| type is|
|00000910| 20 54 45 58 54 2c 20 74 | 68 65 20 6c 6f 63 61 6c | TEXT, t|he local|
|00000920| 20 49 44 20 69 73 20 36 | 31 32 20 2a 2f 0d 09 20 | ID is 6|12 */.. |
|00000930| 20 20 20 20 20 22 22 20 | 20 20 20 20 20 20 20 20 | "" | |
|00000940| 20 20 2f 2a 20 74 68 69 | 73 20 73 74 72 69 6e 67 | /* thi|s string|
|00000950| 20 73 68 6f 75 6c 64 20 | 62 65 20 65 6d 70 74 79 | should |be empty|
|00000960| 20 28 69 74 20 69 73 20 | 75 6e 75 73 65 64 29 20 | (it is |unused) |
|00000970| 2a 2f 0d 09 20 20 20 7d | 0d 09 7d 3b 0d 54 68 65 |*/.. }|..};.The|
|00000980| 20 72 65 61 73 6f 6e 20 | 74 68 61 74 20 79 6f 75 | reason |that you|
|00000990| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 6c 6f 63 | specify| the loc|
|000009a0| 61 6c 20 49 44 2c 20 72 | 61 74 68 65 72 20 74 68 |al ID, r|ather th|
|000009b0| 61 6e 20 74 68 65 20 61 | 63 74 75 61 6c 20 72 65 |an the a|ctual re|
|000009c0| 73 6f 75 72 63 65 20 49 | 44 20 6f 66 20 74 68 65 |source I|D of the|
|000009d0| 20 49 43 4e 23 20 69 73 | 20 74 68 61 74 20 74 68 | ICN# is| that th|
|000009e0| 65 20 46 69 6e 64 65 72 | 20 77 69 6c 6c 20 63 6f |e Finder| will co|
|000009f0| 70 79 20 61 6c 6c 20 6f | 66 20 74 68 65 20 62 75 |py all o|f the bu|
|00000a00| 6e 64 6c 65 20 72 65 73 | 6f 75 72 63 65 73 20 69 |ndle res|ources i|
|00000a10| 6e 74 6f 20 74 68 65 20 | 44 65 73 6b 74 6f 70 20 |nto the |Desktop |
|00000a20| 66 69 6c 65 20 61 6e 64 | 20 72 65 6e 75 6d 62 65 |file and| renumbe|
|00000a30| 72 20 74 68 65 6d 20 74 | 6f 20 61 76 6f 69 64 20 |r them t|o avoid |
|00000a40| 63 6f 6e 66 6c 69 63 74 | 73 2e 20 54 68 69 73 20 |conflict|s. This |
|00000a50| 6d 65 61 6e 73 20 74 68 | 61 74 20 74 68 65 20 61 |means th|at the a|
|00000a60| 63 74 75 61 6c 20 49 44 | 73 20 77 69 6c 6c 20 63 |ctual ID|s will c|
|00000a70| 68 61 6e 67 65 2c 20 62 | 75 74 20 74 68 65 20 6c |hange, b|ut the l|
|00000a80| 6f 63 61 6c 20 49 44 73 | 20 77 69 6c 6c 20 72 65 |ocal IDs| will re|
|00000a90| 6d 61 69 6e 20 74 68 65 | 20 73 61 6d 65 2e 0d 45 |main the| same..E|
|00000aa0| 76 65 72 79 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |very app|lication|
|00000ab0| 20 28 6f 72 20 6f 74 68 | 65 72 20 66 69 6c 65 20 | (or oth|er file |
|00000ac0| 77 69 74 68 20 61 20 62 | 75 6e 64 6c 65 29 20 68 |with a b|undle) h|
|00000ad0| 61 73 20 61 20 75 6e 69 | 71 75 65 20 66 6f 75 72 |as a uni|que four|
|00000ae0| 2d 63 68 61 72 61 63 74 | 65 72 20 73 69 67 6e 61 |-charact|er signa|
|00000af0| 74 75 72 65 2e 20 54 68 | 65 20 46 69 6e 64 65 72 |ture. Th|e Finder|
|00000b00| 20 75 73 65 73 20 74 68 | 69 73 20 74 6f 20 69 64 | uses th|is to id|
|00000b10| 65 6e 74 69 66 79 20 61 | 6e 20 61 70 70 6c 69 63 |entify a|n applic|
|00000b20| 61 74 69 6f 6e 2e 20 54 | 68 65 20 63 72 65 61 74 |ation. T|he creat|
|00000b30| 6f 72 20 72 65 73 6f 75 | 72 63 65 20 74 68 61 74 |or resou|rce that|
|00000b40| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 73 69 6e 67 | contain|s a sing|
|00000b50| 6c 65 20 73 74 72 69 6e | 67 2c 20 61 6e 64 20 73 |le strin|g, and s|
|00000b60| 68 6f 75 6c 64 20 62 65 | 20 64 65 66 69 6e 65 64 |hould be| defined|
|00000b70| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0d 09 74 79 70 | like th|is:..typ|
|00000b80| 65 20 27 4d 49 4e 45 27 | 20 61 73 20 27 53 54 52 |e 'MINE'| as 'STR|
|00000b90| 20 27 3b 20 2f 2a 20 4d | 49 4e 45 20 69 73 20 74 | '; /* M|INE is t|
|00000ba0| 68 65 20 73 69 67 6e 61 | 74 75 72 65 20 2a 2f 0d |he signa|ture */.|
|00000bb0| 09 72 65 73 6f 75 72 63 | 65 20 27 4d 49 4e 45 27 |.resourc|e 'MINE'|
|00000bc0| 20 28 30 29 20 7b 20 2f | 2a 20 74 68 65 20 63 72 | (0) { /|* the cr|
|00000bd0| 65 61 74 6f 72 20 72 65 | 73 6f 75 72 63 65 20 49 |eator re|source I|
|00000be0| 44 20 6d 75 73 74 20 62 | 65 20 30 20 2a 2f 0d 09 |D must b|e 0 */..|
|00000bf0| 20 20 20 22 4d 79 50 72 | 6f 67 72 61 6d 20 31 2e | "MyPr|ogram 1.|
|00000c00| 30 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 38 38 |0 Copyri|ght 1988|
|00000c10| 22 0d 09 7d 3b 0d 4e 6f | 77 20 66 6f 72 20 74 68 |"..};.No|w for th|
|00000c20| 65 20 42 4e 44 4c 20 72 | 65 73 6f 75 72 63 65 2e |e BNDL r|esource.|
|00000c30| 20 54 68 65 20 42 4e 44 | 4c 20 72 65 73 6f 75 72 | The BND|L resour|
|00000c40| 63 65 20 61 73 73 6f 63 | 69 61 74 65 73 20 6c 6f |ce assoc|iates lo|
|00000c50| 63 61 6c 20 72 65 73 6f | 75 72 63 65 20 49 44 73 |cal reso|urce IDs|
|00000c60| 20 77 69 74 68 20 61 63 | 74 75 61 6c 20 72 65 73 | with ac|tual res|
|00000c70| 6f 75 72 63 65 20 49 44 | 73 2c 20 61 6e 64 20 61 |ource ID|s, and a|
|00000c80| 6c 73 6f 20 74 65 6c 6c | 73 20 74 68 65 20 46 69 |lso tell|s the Fi|
|00000c90| 6e 64 65 72 20 77 68 61 | 74 20 66 69 6c 65 20 74 |nder wha|t file t|
|00000ca0| 79 70 65 73 20 65 78 69 | 73 74 2c 20 61 6e 64 20 |ypes exi|st, and |
|00000cb0| 77 68 69 63 68 20 49 43 | 4e 23 73 20 61 6e 64 20 |which IC|N#s and |
|00000cc0| 46 52 45 46 73 20 61 72 | 65 20 70 61 72 74 20 6f |FREFs ar|e part o|
|00000cd0| 66 20 74 68 65 20 62 75 | 6e 64 6c 65 2e 20 54 68 |f the bu|ndle. Th|
|00000ce0| 65 20 72 65 73 6f 75 72 | 63 65 20 6c 6f 6f 6b 73 |e resour|ce looks|
|00000cf0| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0d 09 72 65 73 | like th|is:..res|
|00000d00| 6f 75 72 63 65 20 27 42 | 4e 44 4c 27 20 28 31 32 |ource 'B|NDL' (12|
|00000d10| 38 29 20 7b 20 2f 2a 20 | 74 68 65 20 62 75 6e 64 |8) { /* |the bund|
|00000d20| 6c 65 20 72 65 73 6f 75 | 72 63 65 20 49 44 20 73 |le resou|rce ID s|
|00000d30| 68 6f 75 6c 64 20 62 65 | 20 30 20 2a 2f 0d 09 20 |hould be| 0 */.. |
|00000d40| 20 20 27 4d 49 4e 45 27 | 2c 20 2f 2a 20 73 69 67 | 'MINE'|, /* sig|
|00000d50| 6e 61 74 75 72 65 20 6f | 66 20 74 68 69 73 20 61 |nature o|f this a|
|00000d60| 70 70 6c 69 63 61 74 69 | 6f 6e 20 2a 2f 0d 09 20 |pplicati|on */.. |
|00000d70| 20 20 30 2c 20 2f 2a 20 | 74 68 65 20 63 72 65 61 | 0, /* |the crea|
|00000d80| 74 6f 72 20 72 65 73 6f | 75 72 63 65 20 49 44 20 |tor reso|urce ID |
|00000d90| 28 74 68 69 73 20 6d 75 | 73 74 20 62 65 20 30 29 |(this mu|st be 0)|
|00000da0| 20 2a 2f 0d 09 20 20 20 | 7b 0d 09 20 20 20 20 20 | */.. |{.. |
|00000db0| 20 27 49 43 4e 23 27 2c | 20 2f 2a 20 6c 6f 63 61 | 'ICN#',| /* loca|
|00000dc0| 6c 20 72 65 73 6f 75 72 | 63 65 20 49 44 20 6d 61 |l resour|ce ID ma|
|00000dd0| 70 70 69 6e 67 20 66 6f | 72 20 69 63 6f 6e 73 20 |pping fo|r icons |
|00000de0| 2a 2f 0d 09 20 20 20 20 | 20 20 7b 0d 09 20 20 20 |*/.. | {.. |
|00000df0| 20 20 20 20 20 20 36 30 | 35 2c 20 37 33 32 2c 20 | 60|5, 732, |
|00000e00| 2f 2a 20 49 43 4e 23 20 | 6c 6f 63 61 6c 20 49 44 |/* ICN# |local ID|
|00000e10| 20 36 30 35 20 6d 61 70 | 73 20 74 6f 20 37 33 32 | 605 map|s to 732|
|00000e20| 20 2a 2f 0d 09 20 20 20 | 20 20 20 20 20 20 36 31 | */.. | 61|
|00000e30| 32 2c 20 37 33 33 20 20 | 2f 2a 20 49 43 4e 23 20 |2, 733 |/* ICN# |
|00000e40| 6c 6f 63 61 6c 20 49 44 | 20 36 31 32 20 6d 61 70 |local ID| 612 map|
|00000e50| 73 20 74 6f 20 37 33 33 | 20 2a 2f 0d 09 20 20 20 |s to 733| */.. |
|00000e60| 20 20 20 7d 2c 0d 09 20 | 20 20 20 20 20 27 46 52 | },.. | 'FR|
|00000e70| 45 46 27 2c 20 2f 2a 20 | 6c 6f 63 61 6c 20 72 65 |EF', /* |local re|
|00000e80| 73 6f 75 72 63 65 20 49 | 44 20 6d 61 70 70 69 6e |source I|D mappin|
|00000e90| 67 20 66 6f 72 20 66 69 | 6c 65 20 74 79 70 65 20 |g for fi|le type |
|00000ea0| 72 65 66 65 72 65 6e 63 | 65 73 20 2a 2f 0d 09 20 |referenc|es */.. |
|00000eb0| 20 20 20 20 20 7b 0d 09 | 20 20 20 20 20 20 20 20 | {..| |
|00000ec0| 20 35 32 33 2c 20 38 31 | 36 2c 20 2f 2a 20 46 52 | 523, 81|6, /* FR|
|00000ed0| 45 46 20 6c 6f 63 61 6c | 20 49 44 20 35 32 33 20 |EF local| ID 523 |
|00000ee0| 6d 61 70 73 20 74 6f 20 | 38 31 36 20 2a 2f 0d 09 |maps to |816 */..|
|00000ef0| 20 20 20 20 20 20 20 20 | 20 35 35 35 2c 20 38 31 | | 555, 81|
|00000f00| 37 20 20 2f 2a 20 46 52 | 45 46 20 6c 6f 63 61 6c |7 /* FR|EF local|
|00000f10| 20 49 44 20 35 35 35 20 | 6d 61 70 73 20 74 6f 20 | ID 555 |maps to |
|00000f20| 38 31 37 20 2a 2f 0d 09 | 20 20 20 20 20 20 7d 2c |817 */..| },|
|00000f30| 0d 57 68 65 6e 20 79 6f | 75 20 61 72 65 20 69 6e |.When yo|u are in|
|00000f40| 20 74 68 65 20 46 69 6e | 64 65 72 2c 20 79 6f 75 | the Fin|der, you|
|00000f50| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 74 |r applic|ation, t|
|00000f60| 79 70 65 20 41 50 50 4c | 20 28 46 52 45 46 20 38 |ype APPL| (FREF 8|
|00000f70| 31 36 29 2c 20 77 69 6c | 6c 20 62 65 20 64 69 73 |16), wil|l be dis|
|00000f80| 70 6c 61 79 65 64 20 77 | 69 74 68 20 69 63 6f 6e |played w|ith icon|
|00000f90| 20 6c 6f 63 61 6c 20 49 | 44 20 36 30 35 20 28 66 | local I|D 605 (f|
|00000fa0| 72 6f 6d 20 74 68 65 20 | 46 52 45 46 20 72 65 73 |rom the |FREF res|
|00000fb0| 6f 75 72 63 65 29 2e 20 | 54 68 69 73 20 69 73 20 |ource). |This is |
|00000fc0| 49 43 4e 23 20 37 33 32 | 2e 20 46 69 6c 65 73 20 |ICN# 732|. Files |
|00000fd0| 6f 66 20 74 79 70 65 20 | 54 45 58 54 20 28 46 52 |of type |TEXT (FR|
|00000fe0| 45 46 20 38 31 37 29 20 | 63 72 65 61 74 65 64 20 |EF 817) |created |
|00000ff0| 62 79 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |by your |applicat|
|00001000| 69 6f 6e 20 77 69 6c 6c | 20 62 65 20 64 69 73 70 |ion will| be disp|
|00001010| 6c 61 79 65 64 20 77 69 | 74 68 20 69 63 6f 6e 20 |layed wi|th icon |
|00001020| 6c 6f 63 61 6c 20 49 44 | 20 36 31 32 20 28 66 72 |local ID| 612 (fr|
|00001030| 6f 6d 20 74 68 65 20 46 | 52 45 46 20 72 65 73 6f |om the F|REF reso|
|00001040| 75 72 63 65 29 2e 20 54 | 68 69 73 20 69 73 20 49 |urce). T|his is I|
|00001050| 43 4e 23 20 37 33 33 2e | 0d 48 6f 77 20 74 68 65 |CN# 733.|.How the|
|00001060| 20 46 69 6e 64 65 72 20 | 55 73 65 73 20 42 75 6e | Finder |Uses Bun|
|00001070| 64 6c 65 73 0d 49 66 20 | 61 20 66 69 6c 65 20 68 |dles.If |a file h|
|00001080| 61 73 20 74 68 65 20 62 | 75 6e 64 6c 65 20 62 69 |as the b|undle bi|
|00001090| 74 20 73 65 74 2c 20 62 | 75 74 20 74 68 65 20 62 |t set, b|ut the b|
|000010a0| 75 6e 64 6c 65 20 69 73 | 6e d5 74 20 69 6e 20 74 |undle is|n.t in t|
|000010b0| 68 65 20 44 65 73 6b 74 | 6f 70 20 66 69 6c 65 2c |he Deskt|op file,|
|000010c0| 20 74 68 65 20 46 69 6e | 64 65 72 20 6c 6f 6f 6b | the Fin|der look|
|000010d0| 73 20 66 6f 72 20 61 20 | 42 4e 44 4c 20 72 65 73 |s for a |BNDL res|
|000010e0| 6f 75 72 63 65 2e 20 49 | 66 20 74 68 65 20 42 4e |ource. I|f the BN|
|000010f0| 44 4c 20 72 65 73 6f 75 | 72 63 65 20 6d 61 74 63 |DL resou|rce matc|
|00001100| 68 65 73 20 74 68 65 20 | 73 69 67 6e 61 74 75 72 |hes the |signatur|
|00001110| 65 20 6f 66 20 74 68 65 | 61 70 70 6c 69 63 61 74 |e of the|applicat|
|00001120| 69 6f 6e 2c 20 74 68 65 | 20 46 69 6e 64 65 72 20 |ion, the| Finder |
|00001130| 74 68 65 6e 20 6d 61 6b | 65 73 20 61 20 63 6f 70 |then mak|es a cop|
|00001140| 79 20 6f 66 20 74 68 65 | 20 62 75 6e 64 6c 65 20 |y of the| bundle |
|00001150| 61 6e 64 20 70 75 74 73 | 20 69 74 20 69 6e 20 74 |and puts| it in t|
|00001160| 68 65 20 44 65 73 6b 74 | 6f 70 20 66 69 6c 65 2e |he Deskt|op file.|
|00001170| 20 54 68 65 20 66 69 6c | 65 20 69 73 20 74 68 65 | The fil|e is the|
|00001180| 6e 20 64 69 73 70 6c 61 | 79 65 64 20 77 69 74 68 |n displa|yed with|
|00001190| 20 69 74 73 20 61 73 73 | 6f 63 69 61 74 65 64 20 | its ass|ociated |
|000011a0| 69 63 6f 6e 2e 0d 49 66 | 20 61 20 66 69 6c 65 20 |icon..If| a file |
|000011b0| 68 61 73 20 6c 6f 73 74 | 20 69 74 73 20 69 63 6f |has lost| its ico|
|000011c0| 6e 20 28 69 74 d5 73 20 | 6f 6e 20 61 20 64 69 73 |n (it.s |on a dis|
|000011d0| 6b 20 77 69 74 68 6f 75 | 74 20 74 68 65 20 66 69 |k withou|t the fi|
|000011e0| 6c 65 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 62 75 |le conta|ining bu|
|000011f0| 6e 64 6c 65 20 61 6e 64 | 20 74 68 65 20 44 65 73 |ndle and| the Des|
|00001200| 6b 74 6f 70 20 66 69 6c | 65 20 64 6f 65 73 6e d5 |ktop fil|e doesn.|
|00001210| 74 20 63 6f 6e 74 61 69 | 6e 20 74 68 65 20 62 75 |t contai|n the bu|
|00001220| 6e 64 6c 65 29 2c 20 74 | 68 65 6e 20 69 74 20 77 |ndle), t|hen it w|
|00001230| 69 6c 6c 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ill be d|isplayed|
|00001240| 20 77 69 74 68 20 74 68 | 65 20 64 65 66 61 75 6c | with th|e defaul|
|00001250| 74 20 64 6f 63 75 6d 65 | 6e 74 20 69 63 6f 6e 20 |t docume|nt icon |
|00001260| 75 6e 74 69 6c 20 74 68 | 65 20 46 69 6e 64 65 72 |until th|e Finder|
|00001270| 20 65 6e 63 6f 75 6e 74 | 65 72 73 20 61 20 63 6f | encount|ers a co|
|00001280| 70 79 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 74 |py of th|e file t|
|00001290| 68 61 74 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |hat cont|ains the|
|000012a0| 20 72 69 67 68 74 20 62 | 75 6e 64 6c 65 2e 20 54 | right b|undle. T|
|000012b0| 68 65 20 46 69 6e 64 65 | 72 20 74 68 65 6e 20 6d |he Finde|r then m|
|000012c0| 61 6b 65 73 20 61 20 63 | 6f 70 79 20 6f 66 20 74 |akes a c|opy of t|
|000012d0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |he appli|cation.s|
|000012e0| 20 62 75 6e 64 6c 65 20 | 28 72 65 6e 75 6d 62 65 | bundle |(renumbe|
|000012f0| 72 69 6e 67 20 72 65 73 | 6f 75 72 63 65 73 20 69 |ring res|ources i|
|00001300| 66 20 6e 65 63 65 73 73 | 61 72 79 29 20 61 6e 64 |f necess|ary) and|
|00001310| 20 70 6c 61 63 65 73 20 | 69 74 20 69 6e 20 74 68 | places |it in th|
|00001320| 65 20 44 65 73 6b 74 6f | 70 20 66 69 6c 65 20 6f |e Deskto|p file o|
|00001330| 66 20 74 68 61 74 20 64 | 69 73 6b 2e 0d 50 72 6f |f that d|isk..Pro|
|00001340| 62 6c 65 6d 73 20 54 68 | 61 74 20 4d 61 79 20 41 |blems Th|at May A|
|00001350| 72 69 73 65 0d 54 68 65 | 72 65 20 61 72 65 20 74 |rise.The|re are t|
|00001360| 69 6d 65 73 20 77 68 65 | 6e 20 79 6f 75 20 68 61 |imes whe|n you ha|
|00001370| 76 65 20 73 65 74 20 75 | 70 20 74 68 65 73 65 20 |ve set u|p these |
|00001380| 72 65 73 6f 75 72 63 65 | 20 74 79 70 65 73 20 70 |resource| types p|
|00001390| 72 6f 70 65 72 6c 79 20 | 62 75 74 20 74 68 65 20 |roperly |but the |
|000013a0| 69 63 6f 6e 20 69 73 20 | 65 69 74 68 65 72 20 74 |icon is |either t|
|000013b0| 68 65 20 77 72 6f 6e 67 | 20 6f 6e 65 20 6f 72 20 |he wrong| one or |
|000013c0| 69 74 20 68 61 73 20 64 | 65 66 61 75 6c 74 65 64 |it has d|efaulted|
|000013d0| 20 74 6f 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | to the |standard|
|000013e0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6f 72 20 | applica|tion or |
|000013f0| 64 61 74 61 20 66 69 6c | 65 20 69 63 6f 6e 2e 20 |data fil|e icon. |
|00001400| 54 68 65 72 65 20 61 72 | 65 20 61 20 6e 75 6d 62 |There ar|e a numb|
|00001410| 65 72 20 6f 66 20 70 6f | 73 73 69 62 6c 65 20 72 |er of po|ssible r|
|00001420| 65 61 73 6f 6e 73 20 66 | 6f 72 20 74 68 69 73 2e |easons f|or this.|
|00001430| 20 0d 49 66 20 79 6f 75 | 20 61 72 65 20 75 73 69 | .If you| are usi|
|00001440| 6e 67 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |ng the M|acintosh|
|00001450| 2d 62 61 73 65 64 20 52 | 4d 61 6b 65 72 2c 20 74 |-based R|Maker, t|
|00001460| 68 65 20 66 69 72 73 74 | 20 74 68 69 6e 67 20 74 |he first| thing t|
|00001470| 6f 20 63 68 65 63 6b 20 | 69 73 20 77 68 65 74 68 |o check |is wheth|
|00001480| 65 72 20 74 68 65 72 65 | 20 61 72 65 20 61 6e 79 |er there| are any|
|00001490| 20 65 78 74 72 61 6e 65 | 6f 75 73 20 73 70 61 63 | extrane|ous spac|
|000014a0| 65 73 20 69 6e 20 79 6f | 75 72 20 72 65 73 6f 75 |es in yo|ur resou|
|000014b0| 72 63 65 20 63 6f 6d 70 | 69 6c 65 72 20 69 6e 70 |rce comp|iler inp|
|000014c0| 75 74 20 66 69 6c 65 2e | 20 54 68 65 20 4d 61 63 |ut file.| The Mac|
|000014d0| 69 6e 74 6f 73 68 2d 62 | 61 73 65 64 20 52 4d 61 |intosh-b|ased RMa|
|000014e0| 6b 65 72 20 69 73 20 76 | 65 72 79 20 70 69 63 6b |ker is v|ery pick|
|000014f0| 79 20 61 62 6f 75 74 20 | 65 78 74 72 61 20 73 70 |y about |extra sp|
|00001500| 61 63 65 73 2e 0d 49 66 | 20 79 6f 75 72 20 69 63 |aces..If| your ic|
|00001510| 6f 6e 20 69 73 20 64 65 | 66 61 75 6c 74 69 6e 67 |on is de|faulting|
|00001520| 20 74 6f 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | to the |standard|
|00001530| 20 69 63 6f 6e 2c 20 63 | 68 65 63 6b 20 74 6f 20 | icon, c|heck to |
|00001540| 73 65 65 20 74 68 61 74 | 20 74 68 65 20 62 75 6e |see that| the bun|
|00001550| 64 6c 65 20 62 69 74 20 | 69 73 20 73 65 74 2e 20 |dle bit |is set. |
|00001560| 49 66 20 74 68 65 20 62 | 75 6e 64 6c 65 20 62 69 |If the b|undle bi|
|00001570| 74 20 69 73 6e d5 74 20 | 73 65 74 20 2c 20 74 68 |t isn.t |set , th|
|00001580| 65 20 46 69 6e 64 65 72 | 20 64 6f 65 73 6e d5 74 |e Finder| doesn.t|
|00001590| 20 6b 6e 6f 77 20 74 6f | 20 70 6c 61 63 65 20 74 | know to| place t|
|000015a0| 68 65 20 62 75 6e 64 6c | 65 20 69 6e 20 74 68 65 |he bundl|e in the|
|000015b0| 20 44 65 73 6b 74 6f 70 | 20 66 69 6c 65 2e 20 49 | Desktop| file. I|
|000015c0| 66 20 69 74 20 69 73 6e | d5 74 20 69 6e 20 74 68 |f it isn|.t in th|
|000015d0| 65 20 44 65 73 6b 74 6f | 70 20 66 69 6c 65 2c 20 |e Deskto|p file, |
|000015e0| 74 68 65 20 46 69 6e 64 | 65 72 20 64 69 73 70 6c |the Find|er displ|
|000015f0| 61 79 73 20 74 68 65 20 | 66 69 6c 65 20 77 69 74 |ays the |file wit|
|00001600| 68 20 61 20 64 65 66 61 | 75 6c 74 20 69 63 6f 6e |h a defa|ult icon|
|00001610| 2e 0d 49 66 20 79 6f 75 | 20 63 68 61 6e 67 65 64 |..If you| changed|
|00001620| 20 74 68 65 20 69 63 6f | 6e 20 61 6e 64 20 72 65 | the ico|n and re|
|00001630| 6d 61 64 65 20 74 68 65 | 20 72 65 73 6f 75 72 63 |made the| resourc|
|00001640| 65 20 66 69 6c 65 2c 20 | 62 75 74 20 74 68 65 20 |e file, |but the |
|00001650| 66 69 6c 65 20 73 74 69 | 6c 6c 20 68 61 73 20 74 |file sti|ll has t|
|00001660| 68 65 20 73 61 6d 65 20 | 6f 6c 64 20 69 63 6f 6e |he same |old icon|
|00001670| 20 77 68 65 6e 20 64 69 | 73 70 6c 61 79 65 64 20 | when di|splayed |
|00001680| 69 6e 20 74 68 65 20 46 | 69 6e 64 65 72 2e 20 54 |in the F|inder. T|
|00001690| 68 65 20 6f 6c 64 20 69 | 63 6f 6e 20 69 73 20 73 |he old i|con is s|
|000016a0| 74 69 6c 6c 20 69 6e 20 | 74 68 65 20 44 65 73 6b |till in |the Desk|
|000016b0| 74 6f 70 20 66 69 6c 65 | 2e 20 54 68 65 20 46 69 |top file|. The Fi|
|000016c0| 6e 64 65 72 20 64 6f 65 | 73 6e d5 74 20 6b 6e 6f |nder doe|sn.t kno|
|000016d0| 77 20 74 68 61 74 20 79 | 6f 75 d5 76 65 20 63 68 |w that y|ou.ve ch|
|000016e0| 61 6e 67 65 64 20 69 74 | 2c 20 73 6f 20 69 74 20 |anged it|, so it |
|000016f0| 75 73 65 73 20 77 68 61 | 74 20 69 74 20 68 61 73 |uses wha|t it has|
|00001700| 2e 20 54 6f 20 67 65 74 | 20 69 74 20 74 6f 20 75 |. To get| it to u|
|00001710| 73 65 20 74 68 65 20 6e | 65 77 20 69 63 6f 6e 20 |se the n|ew icon |
|00001720| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 72 65 62 75 |you need| to rebu|
|00001730| 69 6c 64 20 74 68 65 20 | 44 65 73 6b 74 6f 70 20 |ild the |Desktop |
|00001740| 66 69 6c 65 2e 20 54 6f | 20 66 6f 72 63 65 20 74 |file. To| force t|
|00001750| 68 65 20 46 69 6e 64 65 | 72 20 74 6f 20 72 65 62 |he Finde|r to reb|
|00001760| 75 69 6c 64 20 74 68 65 | 20 44 65 73 6b 74 6f 70 |uild the| Desktop|
|00001770| 20 66 69 6c 65 2c 20 79 | 6f 75 20 63 61 6e 20 68 | file, y|ou can h|
|00001780| 6f 6c 64 20 64 6f 77 6e | 20 74 68 65 20 4f 70 74 |old down| the Opt|
|00001790| 69 6f 6e 20 61 6e 64 20 | 43 6f 6d 6d 61 6e 64 20 |ion and |Command |
|000017a0| 6b 65 79 73 20 6f 6e 20 | 73 74 61 72 74 75 70 20 |keys on |startup |
|000017b0| 6f 72 20 6f 6e 20 69 6e | 73 65 72 74 69 6f 6e 20 |or on in|sertion |
|000017c0| 6f 66 20 74 68 65 20 64 | 69 73 6b 20 69 6e 20 71 |of the d|isk in q|
|000017d0| 75 65 73 74 69 6f 6e 20 | 69 66 20 69 74 20 69 73 |uestion |if it is|
|000017e0| 6e 27 74 20 74 68 65 20 | 62 6f 6f 74 20 64 69 73 |n't the |boot dis|
|000017f0| 6b 2e 20 54 68 65 20 46 | 69 6e 64 65 72 20 77 69 |k. The F|inder wi|
|00001800| 6c 6c 20 61 73 6b 20 77 | 68 65 74 68 65 72 20 6f |ll ask w|hether o|
|00001810| 72 20 6e 6f 74 20 79 6f | 75 20 77 61 6e 74 20 74 |r not yo|u want t|
|00001820| 6f 20 72 65 62 75 69 6c | 64 20 74 68 65 20 64 65 |o rebuil|d the de|
|00001830| 73 6b 74 6f 70 20 28 6d | 65 61 6e 69 6e 67 20 74 |sktop (m|eaning t|
|00001840| 68 65 20 44 65 73 6b 74 | 6f 70 20 66 69 6c 65 29 |he Deskt|op file)|
|00001850| 2e 0d 48 61 76 65 20 61 | 20 62 75 6e 64 6c 65 20 |..Have a| bundle |
|00001860| 6f 66 20 66 75 6e 21 0d | 46 75 72 74 68 65 72 20 |of fun!.|Further |
|00001870| 52 65 66 65 72 65 6e 63 | 65 3a 0d a5 09 54 68 65 |Referenc|e:...The|
|00001880| 20 46 69 6e 64 65 72 20 | 49 6e 74 65 72 66 61 63 | Finder |Interfac|
|00001890| 65 0d 54 42 20 32 20 2d | 20 43 61 6c 6c 69 6e 67 |e.TB 2 -| Calling|
|000018a0| 20 53 65 74 52 65 73 4c | 6f 61 64 0d 54 6f 6f 6c | SetResL|oad.Tool|
|000018b0| 62 6f 78 09 0d 52 65 76 | 69 73 65 64 20 62 79 3a |box..Rev|ised by:|
|000018c0| 09 09 4d 61 72 63 68 20 | 31 39 38 38 0d 57 72 69 |..March |1988.Wri|
|000018d0| 74 74 65 6e 20 62 79 3a | 09 4a 69 6d 20 46 72 69 |tten by:|.Jim Fri|
|000018e0| 65 64 6c 61 6e 64 65 72 | 09 4f 63 74 6f 62 65 72 |edlander|.October|
|000018f0| 20 31 39 38 35 0d 43 61 | 6c 6c 69 6e 67 20 53 65 | 1985.Ca|lling Se|
|00001900| 74 52 65 73 4c 6f 61 64 | 28 46 41 4c 53 45 29 20 |tResLoad|(FALSE) |
|00001910| 63 61 6e 20 62 65 20 75 | 73 65 66 75 6c 20 69 66 |can be u|seful if|
|00001920| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 67 65 74 | you nee|d to get|
|00001930| 20 61 20 68 61 6e 64 6c | 65 20 74 6f 20 61 20 72 | a handl|e to a r|
|00001940| 65 73 6f 75 72 63 65 2c | 20 77 69 74 68 6f 75 74 |esource,| without|
|00001950| 20 63 61 75 73 69 6e 67 | 20 74 68 65 20 72 65 73 | causing| the res|
|00001960| 6f 75 72 63 65 20 74 6f | 20 62 65 20 6c 6f 61 64 |ource to| be load|
|00001970| 65 64 20 66 72 6f 6d 20 | 64 69 73 6b 20 69 66 20 |ed from |disk if |
|00001980| 69 74 20 69 73 6e d5 74 | 20 61 6c 72 65 61 64 79 |it isn.t| already|
|00001990| 20 69 6e 20 6d 65 6d 6f | 72 79 2e 20 53 65 74 52 | in memo|ry. SetR|
|000019a0| 65 73 4c 6f 61 64 20 63 | 68 61 6e 67 65 73 20 74 |esLoad c|hanges t|
|000019b0| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|000019c0| 6c 6f 77 2d 6d 65 6d 6f | 72 79 20 67 6c 6f 62 61 |low-memo|ry globa|
|000019d0| 6c 20 52 65 73 4c 6f 61 | 64 20 28 61 74 20 6c 6f |l ResLoa|d (at lo|
|000019e0| 63 61 74 69 6f 6e 20 24 | 41 35 45 29 2e 0d 49 74 |cation $|A5E)..It|
|000019f0| 20 69 73 20 76 65 72 79 | 20 69 6d 70 6f 72 74 61 | is very| importa|
|00001a00| 6e 74 20 74 68 61 74 20 | 79 6f 75 72 20 70 72 6f |nt that |your pro|
|00001a10| 67 72 61 6d 20 6e 6f 74 | 20 6c 65 61 76 65 20 52 |gram not| leave R|
|00001a20| 65 73 4c 6f 61 64 20 73 | 65 74 20 74 6f 20 46 41 |esLoad s|et to FA|
|00001a30| 4c 53 45 20 77 68 65 6e | 20 69 74 20 65 78 69 74 |LSE when| it exit|
|00001a40| 73 2e 20 44 6f 69 6e 67 | 20 74 68 69 73 20 77 69 |s. Doing| this wi|
|00001a50| 6c 6c 20 63 61 75 73 65 | 20 74 68 65 20 73 79 73 |ll cause| the sys|
|00001a60| 74 65 6d 20 74 6f 20 72 | 65 62 6f 6f 74 20 6f 72 |tem to r|eboot or|
|00001a70| 20 63 72 61 73 68 20 77 | 68 65 6e 20 69 74 20 64 | crash w|hen it d|
|00001a80| 6f 65 73 20 61 20 47 65 | 74 52 65 73 6f 75 72 63 |oes a Ge|tResourc|
|00001a90| 65 20 63 61 6c 6c 20 66 | 6f 72 20 74 68 65 20 6e |e call f|or the n|
|00001aa0| 65 78 74 20 63 6f 64 65 | 20 73 65 67 6d 65 6e 74 |ext code| segment|
|00001ab0| 20 74 6f 20 62 65 20 6c | 6f 61 64 65 64 20 28 75 | to be l|oaded (u|
|00001ac0| 73 75 61 6c 6c 79 20 74 | 68 65 20 46 69 6e 64 65 |sually t|he Finde|
|00001ad0| 72 29 2e 20 54 68 65 20 | 73 79 73 74 65 6d 20 77 |r). The |system w|
|00001ae0| 69 6c 6c 20 63 72 61 73 | 68 20 62 65 63 61 75 73 |ill cras|h becaus|
|00001af0| 65 20 47 65 74 52 65 73 | 6f 75 72 63 65 20 77 69 |e GetRes|ource wi|
|00001b00| 6c 6c 20 6e 6f 74 20 61 | 63 74 75 61 6c 6c 79 20 |ll not a|ctually |
|00001b10| 6c 6f 61 64 20 74 68 65 | 20 63 6f 64 65 20 66 72 |load the| code fr|
|00001b20| 6f 6d 20 64 69 73 6b 20 | 77 68 65 6e 20 52 65 73 |om disk |when Res|
|00001b30| 4c 6f 61 64 20 69 73 20 | 46 41 4c 53 45 2e 0d 53 |Load is |FALSE..S|
|00001b40| 6f 2c 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 61 |o, make |sure tha|
|00001b50| 74 20 79 6f 75 20 63 61 | 6c 6c 20 53 65 74 52 65 |t you ca|ll SetRe|
|00001b60| 73 4c 6f 61 64 28 54 52 | 55 45 29 20 62 65 66 6f |sLoad(TR|UE) befo|
|00001b70| 72 65 20 65 78 69 74 69 | 6e 67 20 79 6f 75 72 20 |re exiti|ng your |
|00001b80| 70 72 6f 67 72 61 6d 2e | 20 0d 46 75 72 74 68 65 |program.| .Furthe|
|00001b90| 72 20 52 65 66 65 72 65 | 6e 63 65 3a 0d a5 09 54 |r Refere|nce:...T|
|00001ba0| 68 65 20 52 65 73 6f 75 | 72 63 65 20 4d 61 6e 61 |he Resou|rce Mana|
|00001bb0| 67 65 72 0d 54 42 20 33 | 20 2d 20 48 6f 77 20 54 |ger.TB 3| - How T|
|00001bc0| 6f 20 50 72 6f 64 75 63 | 65 20 43 6f 6e 74 69 6e |o Produc|e Contin|
|00001bd0| 75 6f 75 73 20 53 6f 75 | 6e 64 20 57 69 74 68 6f |uous Sou|nd Witho|
|00001be0| 75 74 20 43 6c 69 63 6b | 69 6e 67 0d 54 6f 6f 6c |ut Click|ing.Tool|
|00001bf0| 62 6f 78 09 0d 52 65 76 | 69 73 65 64 20 62 79 3a |box..Rev|ised by:|
|00001c00| 09 4a 69 6d 20 52 65 65 | 6b 65 73 09 4a 75 6e 65 |.Jim Ree|kes.June|
|00001c10| 20 31 39 38 39 0d 57 72 | 69 74 74 65 6e 20 62 79 | 1989.Wr|itten by|
|00001c20| 3a 09 47 69 6e 67 65 72 | 20 4a 65 72 6e 69 67 61 |:.Ginger| Jerniga|
|00001c30| 6e 09 41 70 72 69 6c 20 | 31 39 38 35 0d 54 68 69 |n.April |1985.Thi|
|00001c40| 73 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |s Techni|cal Note|
|00001c50| 20 66 6f 72 6d 65 72 6c | 79 20 64 65 73 63 72 69 | formerl|y descri|
|00001c60| 62 65 64 20 68 6f 77 20 | 74 6f 20 75 73 65 20 74 |bed how |to use t|
|00001c70| 68 65 20 53 6f 75 6e 64 | 20 44 72 69 76 65 72 20 |he Sound| Driver |
|00001c80| 74 6f 20 70 72 6f 64 75 | 63 65 20 63 6f 6e 74 69 |to produ|ce conti|
|00001c90| 6e 75 6f 75 73 20 73 6f | 75 6e 64 20 77 69 74 68 |nuous so|und with|
|00001ca0| 6f 75 74 20 63 6c 69 63 | 6b 69 6e 67 2e 0d 43 68 |out clic|king..Ch|
|00001cb0| 61 6e 67 65 73 20 73 69 | 6e 63 65 20 4d 61 72 63 |anges si|nce Marc|
|00001cc0| 68 20 31 39 38 38 3a 20 | 20 54 68 65 20 63 6f 6e |h 1988: | The con|
|00001cd0| 74 69 6e 75 6f 75 73 20 | 73 6f 75 6e 64 20 74 65 |tinuous |sound te|
|00001ce0| 63 68 6e 69 71 75 65 20 | 69 73 20 6e 6f 20 6c 6f |chnique |is no lo|
|00001cf0| 6e 67 65 72 20 72 65 63 | 6f 6d 6d 65 6e 64 65 64 |nger rec|ommended|
|00001d00| 2e 0d 41 70 70 6c 65 20 | 63 75 72 72 65 6e 74 6c |..Apple |currentl|
|00001d10| 79 20 64 69 73 63 6f 75 | 72 61 67 65 73 20 75 73 |y discou|rages us|
|00001d20| 65 20 6f 66 20 74 68 65 | 20 53 6f 75 6e 64 20 44 |e of the| Sound D|
|00001d30| 72 69 76 65 72 20 64 75 | 65 20 74 6f 20 63 6f 6d |river du|e to com|
|00001d40| 70 61 74 69 62 69 6c 69 | 74 79 20 69 73 73 75 65 |patibili|ty issue|
|00001d50| 73 2e 20 20 54 68 65 20 | 68 61 72 64 77 61 72 65 |s. The |hardware|
|00001d60| 20 73 75 70 70 6f 72 74 | 20 66 6f 72 20 73 6f 75 | support| for sou|
|00001d70| 6e 64 20 64 65 73 69 67 | 6e 65 64 20 69 6e 74 6f |nd desig|ned into|
|00001d80| 20 74 68 65 20 65 61 72 | 6c 79 20 4d 61 63 69 6e | the ear|ly Macin|
|00001d90| 74 6f 73 68 20 61 72 63 | 68 69 74 65 63 74 75 72 |tosh arc|hitectur|
|00001da0| 65 20 77 61 73 20 6d 69 | 6e 69 6d 61 6c 2e 20 20 |e was mi|nimal. |
|00001db0| 28 4d 61 6e 79 20 74 68 | 69 6e 67 73 20 68 61 76 |(Many th|ings hav|
|00001dc0| 65 20 63 68 61 6e 67 65 | 64 20 73 69 6e 63 65 20 |e change|d since |
|00001dd0| 31 39 38 33 d0 31 39 38 | 34 2e 29 20 20 54 68 65 |1983.198|4.) The|
|00001de0| 20 6e 65 77 20 4d 61 63 | 69 6e 74 6f 73 68 20 63 | new Mac|intosh c|
|00001df0| 6f 6d 70 75 74 65 72 73 | 20 63 6f 6e 74 61 69 6e |omputers| contain|
|00001e00| 20 61 20 63 75 73 74 6f | 6d 20 63 68 69 70 20 74 | a custo|m chip t|
|00001e10| 6f 20 70 72 6f 76 69 64 | 65 20 62 65 74 74 65 72 |o provid|e better|
|00001e20| 20 73 75 70 70 6f 72 74 | 20 66 6f 72 20 73 6f 75 | support| for sou|
|00001e30| 6e 64 2c 20 6e 61 6d 65 | 6c 79 20 74 68 65 20 41 |nd, name|ly the A|
|00001e40| 70 70 6c 65 20 53 6f 75 | 6e 64 20 43 68 69 70 20 |pple Sou|nd Chip |
|00001e50| 28 41 53 43 29 2e 20 20 | 54 68 65 20 41 53 43 20 |(ASC). |The ASC |
|00001e60| 69 73 20 70 72 65 73 65 | 6e 74 20 69 6e 20 74 68 |is prese|nt in th|
|00001e70| 65 20 63 6f 6d 70 6c 65 | 74 65 20 4d 61 63 69 6e |e comple|te Macin|
|00001e80| 74 6f 73 68 20 49 49 20 | 66 61 6d 69 6c 79 20 61 |tosh II |family a|
|00001e90| 73 20 77 65 6c 6c 20 61 | 73 20 74 68 65 20 4d 61 |s well a|s the Ma|
|00001ea0| 63 69 6e 74 6f 73 68 20 | 53 45 2f 33 30 20 61 6e |cintosh |SE/30 an|
|00001eb0| 64 20 6c 61 74 65 72 20 | 6d 61 63 68 69 6e 65 73 |d later |machines|
|00001ec0| 2e 20 20 57 68 65 6e 20 | 74 68 65 20 6f 6c 64 65 |. When |the olde|
|00001ed0| 72 20 68 61 72 64 77 61 | 72 65 20 6f 66 20 74 68 |r hardwa|re of th|
|00001ee0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6c 75 73 |e Macint|osh Plus|
|00001ef0| 20 61 6e 64 20 53 45 20 | 61 72 65 20 61 63 63 65 | and SE |are acce|
|00001f00| 73 73 65 64 2c 20 69 74 | 20 69 73 20 6c 69 6b 65 |ssed, it| is like|
|00001f10| 6c 79 20 74 6f 20 63 61 | 75 73 65 20 61 20 63 6c |ly to ca|use a cl|
|00001f20| 69 63 6b 2e 20 20 54 68 | 69 73 20 63 6c 69 63 6b |ick. Th|is click|
|00001f30| 20 69 73 20 61 20 68 61 | 72 64 77 61 72 65 20 70 | is a ha|rdware p|
|00001f40| 72 6f 62 6c 65 6d 2e 20 | 20 54 68 65 20 73 6f 66 |roblem. | The sof|
|00001f50| 74 77 61 72 65 20 73 6f | 6c 75 74 69 6f 6e 20 74 |tware so|lution t|
|00001f60| 6f 20 74 68 69 73 20 70 | 72 6f 62 6c 65 6d 20 77 |o this p|roblem w|
|00001f70| 61 73 20 74 6f 20 63 6f | 6e 74 69 6e 75 6f 75 73 |as to co|ntinuous|
|00001f80| 6c 79 20 70 6c 61 79 20 | 73 69 6c 65 6e 63 65 2e |ly play |silence.|
|00001f90| 20 20 54 68 69 73 20 69 | 73 20 6e 6f 74 20 61 20 | This i|s not a |
|00001fa0| 72 65 61 6c 20 73 6f 6c | 75 74 69 6f 6e 20 74 6f |real sol|ution to|
|00001fb0| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 20 61 6e 64 | the pro|blem and|
|00001fc0| 20 69 73 20 6e 6f 74 20 | 61 64 76 69 73 61 62 6c | is not |advisabl|
|00001fd0| 65 20 66 6f 72 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |e for th|e follow|
|00001fe0| 69 6e 67 20 72 65 61 73 | 6f 6e 73 3a 0d a5 09 54 |ing reas|ons:...T|
|00001ff0| 68 65 20 53 6f 75 6e 64 | 20 44 72 69 76 65 72 20 |he Sound| Driver |
|00002000| 69 73 20 6e 6f 20 6c 6f | 6e 67 65 72 20 73 75 70 |is no lo|nger sup|
|00002010| 70 6f 72 74 65 64 2e 20 | 20 54 68 65 72 65 20 68 |ported. | There h|
|00002020| 61 76 65 20 61 6c 77 61 | 79 73 20 62 65 65 6e 2c |ave alwa|ys been,|
|00002030| 20 61 6e 64 20 73 74 69 | 6c 6c 20 61 72 65 2c 20 | and sti|ll are, |
|00002040| 62 75 67 73 20 69 6e 20 | 74 68 65 20 67 6c 75 65 |bugs in |the glue|
|00002050| 20 63 6f 64 65 20 66 6f | 72 20 53 74 61 72 74 53 | code fo|r StartS|
|00002060| 6f 75 6e 64 2e 0d a5 09 | 54 68 65 20 53 6f 75 6e |ound....|The Soun|
|00002070| 64 20 44 72 69 76 65 72 | 20 6d 61 79 20 6e 6f 74 |d Driver| may not|
|00002080| 20 62 65 20 70 72 65 73 | 65 6e 74 20 69 6e 20 66 | be pres|ent in f|
|00002090| 75 74 75 72 65 20 53 79 | 73 74 65 6d 20 53 6f 66 |uture Sy|stem Sof|
|000020a0| 74 77 61 72 65 20 72 65 | 6c 65 61 73 65 73 2c 20 |tware re|leases, |
|000020b0| 6f 72 20 66 75 74 75 72 | 65 20 68 61 72 64 77 61 |or futur|e hardwa|
|000020c0| 72 65 20 6d 61 79 20 6e | 6f 74 20 62 65 20 61 62 |re may n|ot be ab|
|000020d0| 6c 65 20 74 6f 20 73 75 | 70 70 6f 72 74 20 69 74 |le to su|pport it|
|000020e0| 2e 20 20 54 68 65 20 53 | 6f 75 6e 64 20 4d 61 6e |. The S|ound Man|
|000020f0| 61 67 65 72 20 69 73 20 | 74 68 65 20 61 70 70 6c |ager is |the appl|
|00002100| 69 63 61 74 69 6f 6e d5 | 73 20 69 6e 74 65 72 66 |ication.|s interf|
|00002110| 61 63 65 20 74 6f 20 74 | 68 65 20 73 6f 75 6e 64 |ace to t|he sound|
|00002120| 20 68 61 72 64 77 61 72 | 65 2e 0d a5 09 54 68 65 | hardwar|e....The|
|00002130| 20 74 65 63 68 6e 69 71 | 75 65 20 75 73 65 64 20 | techniq|ue used |
|00002140| 74 6f 20 63 72 65 61 74 | 65 20 61 20 63 6f 6e 74 |to creat|e a cont|
|00002150| 69 6e 75 6f 75 73 20 73 | 6f 75 6e 64 20 73 68 6f |inuous s|ound sho|
|00002160| 75 6c 64 20 68 61 76 65 | 20 6f 6e 6c 79 20 62 65 |uld have| only be|
|00002170| 65 6e 20 75 73 65 64 20 | 6f 6e 20 61 20 4d 61 63 |en used |on a Mac|
|00002180| 69 6e 74 6f 73 68 20 50 | 6c 75 73 20 6f 72 20 53 |intosh P|lus or S|
|00002190| 45 2c 20 73 69 6e 63 65 | 20 74 68 65 73 65 20 61 |E, since| these a|
|000021a0| 72 65 20 74 68 65 20 6f | 6e 6c 79 20 6d 6f 64 65 |re the o|nly mode|
|000021b0| 6c 73 20 74 68 61 74 20 | 68 61 76 65 20 74 68 65 |ls that |have the|
|000021c0| 20 d2 65 6d 62 61 72 72 | 61 73 73 69 6e 67 20 63 | .embarr|assing c|
|000021d0| 6c 69 63 6b 2e d3 20 20 | 44 6f 20 6e 6f 74 20 75 |lick.. |Do not u|
|000021e0| 73 65 20 74 68 69 73 20 | 6d 65 74 68 6f 64 20 6f |se this |method o|
|000021f0| 6e 20 61 20 4d 61 63 69 | 6e 74 6f 73 68 20 77 68 |n a Maci|ntosh wh|
|00002200| 69 63 68 20 68 61 73 20 | 74 68 65 20 41 70 70 6c |ich has |the Appl|
|00002210| 65 20 53 6f 75 6e 64 20 | 43 68 69 70 2e 0d a5 09 |e Sound |Chip....|
|00002220| 55 73 69 6e 67 20 74 68 | 65 20 63 6f 6e 74 69 6e |Using th|e contin|
|00002230| 75 6f 75 73 20 73 6f 75 | 6e 64 20 74 65 63 68 6e |uous sou|nd techn|
|00002240| 69 71 75 65 2c 20 6f 72 | 20 74 68 65 20 53 6f 75 |ique, or| the Sou|
|00002250| 6e 64 20 44 72 69 76 65 | 72 20 66 6f 72 20 74 68 |nd Drive|r for th|
|00002260| 61 74 20 6d 61 74 74 65 | 72 2c 20 77 69 6c 6c 20 |at matte|r, will |
|00002270| 63 61 75 73 65 20 70 72 | 6f 62 6c 65 6d 73 20 66 |cause pr|oblems f|
|00002280| 6f 72 20 74 68 65 20 73 | 79 73 74 65 6d 20 61 6e |or the s|ystem an|
|00002290| 64 20 74 68 6f 73 65 20 | 61 70 70 6c 69 63 61 74 |d those |applicat|
|000022a0| 69 6f 6e 73 20 74 68 61 | 74 20 70 72 6f 70 65 72 |ions tha|t proper|
|000022b0| 6c 79 20 75 73 65 20 74 | 68 65 20 53 6f 75 6e 64 |ly use t|he Sound|
|000022c0| 20 4d 61 6e 61 67 65 72 | 2e 20 20 41 6c 73 6f 20 | Manager|. Also |
|000022d0| 72 65 61 6c 69 7a 65 20 | 74 68 61 74 20 5f 53 79 |realize |that _Sy|
|000022e0| 73 42 65 65 70 2c 20 77 | 68 69 63 68 20 69 73 20 |sBeep, w|hich is |
|000022f0| 61 20 63 6f 6d 6d 6f 6e | 20 72 6f 75 74 69 6e 65 |a common| routine|
|00002300| 20 74 68 61 74 20 65 76 | 65 72 79 74 68 69 6e 67 | that ev|erything|
|00002310| 20 75 73 65 73 2c 20 69 | 73 20 61 20 53 6f 75 6e | uses, i|s a Soun|
|00002320| 64 20 4d 61 6e 61 67 65 | 72 20 72 6f 75 74 69 6e |d Manage|r routin|
|00002330| 65 2e 0d a5 09 54 68 65 | 20 63 6f 6e 74 69 6e 75 |e....The| continu|
|00002340| 6f 75 73 20 73 6f 75 6e | 64 20 74 65 63 68 6e 69 |ous soun|d techni|
|00002350| 71 75 65 20 77 61 73 74 | 65 73 20 43 50 55 20 74 |que wast|es CPU t|
|00002360| 69 6d 65 20 62 79 20 70 | 6c 61 79 69 6e 67 20 73 |ime by p|laying s|
|00002370| 69 6c 65 6e 63 65 2e 20 | 20 57 69 74 68 20 6d 75 |ilence. | With mu|
|00002380| 6c 74 69 6d 65 64 69 61 | 20 61 70 70 6c 69 63 61 |ltimedia| applica|
|00002390| 74 69 6f 6e 73 20 61 6e | 64 20 74 68 65 20 61 64 |tions an|d the ad|
|000023a0| 76 65 6e 74 20 6f 66 20 | 4d 75 6c 74 69 46 69 6e |vent of |MultiFin|
|000023b0| 64 65 72 2c 20 69 74 20 | 69 73 20 69 6d 70 6f 72 |der, it |is impor|
|000023c0| 74 61 6e 74 20 74 6f 20 | 61 6c 6c 6f 77 20 74 68 |tant to |allow th|
|000023d0| 65 20 43 50 55 20 74 6f | 20 64 6f 20 61 73 20 6d |e CPU to| do as m|
|000023e0| 75 63 68 20 77 6f 72 6b | 20 61 73 20 70 6f 73 73 |uch work| as poss|
|000023f0| 69 62 6c 65 2e 20 20 54 | 68 65 20 63 6f 6e 74 69 |ible. T|he conti|
|00002400| 6e 75 6f 75 73 20 73 6f | 75 6e 64 20 74 65 63 68 |nuous so|und tech|
|00002410| 6e 69 71 75 65 20 75 73 | 65 64 20 74 68 65 20 43 |nique us|ed the C|
|00002420| 50 55 20 74 6f 20 63 6f | 6e 74 69 6e 75 6f 75 73 |PU to co|ntinuous|
|00002430| 6c 79 20 70 6c 61 79 20 | 73 69 6c 65 6e 63 65 2c |ly play |silence,|
|00002440| 20 74 68 75 73 20 73 74 | 65 61 6c 69 6e 67 20 76 | thus st|ealing v|
|00002450| 61 6c 75 61 62 6c 65 20 | 74 69 6d 65 20 66 72 6f |aluable |time fro|
|00002460| 6d 20 6f 74 68 65 72 2c | 20 6d 6f 72 65 20 69 6d |m other,| more im|
|00002470| 70 6f 72 74 61 6e 74 2c | 20 6a 6f 62 73 2e 0d 46 |portant,| jobs..F|
|00002480| 75 72 74 68 65 72 20 52 | 65 66 65 72 65 6e 63 65 |urther R|eference|
|00002490| 3a 0d a5 09 54 68 65 20 | 53 6f 75 6e 64 20 4d 61 |:...The |Sound Ma|
|000024a0| 6e 61 67 65 72 2c 20 49 | 6e 74 65 72 69 6d 20 43 |nager, I|nterim C|
|000024b0| 68 61 70 74 65 72 20 62 | 79 20 4a 69 6d 20 52 65 |hapter b|y Jim Re|
|000024c0| 65 6b 65 73 2c 20 4f 63 | 74 6f 62 65 72 20 32 2c |ekes, Oc|tober 2,|
|000024d0| 20 31 39 38 38 0d a5 09 | 4d 2e 54 42 2e 4d 75 6c | 1988...|M.TB.Mul|
|000024e0| 74 69 66 69 6e 64 65 72 | 4d 69 73 63 0d 54 42 20 |tifinder|Misc.TB |
|000024f0| 34 20 2d 20 43 75 73 74 | 6f 6d 20 4d 65 6e 75 20 |4 - Cust|om Menu |
|00002500| 46 6c 61 73 68 69 6e 67 | 20 42 75 67 0d 54 6f 6f |Flashing| Bug.Too|
|00002510| 6c 62 6f 78 09 0d 57 72 | 69 74 74 65 6e 20 62 79 |lbox..Wr|itten by|
|00002520| 3a 09 44 65 6e 6e 69 73 | 20 48 65 73 63 6f 78 09 |:.Dennis| Hescox.|
|00002530| 46 65 62 72 75 61 72 79 | 20 31 39 38 39 0d 53 65 |February| 1989.Se|
|00002540| 6c 65 63 74 65 64 20 6d | 65 6e 75 20 69 74 65 6d |lected m|enu item|
|00002550| 73 20 69 6e 20 61 20 63 | 75 73 74 6f 6d 20 27 4d |s in a c|ustom 'M|
|00002560| 44 45 46 27 20 72 65 73 | 6f 75 72 63 65 20 64 6f |DEF' res|ource do|
|00002570| 20 6e 6f 74 20 66 6c 61 | 73 68 20 63 6f 72 72 65 | not fla|sh corre|
|00002580| 63 74 6c 79 20 64 75 65 | 20 74 6f 20 61 20 62 75 |ctly due| to a bu|
|00002590| 67 20 69 6e 20 74 68 65 | 20 4d 65 6e 75 20 4d 61 |g in the| Menu Ma|
|000025a0| 6e 61 67 65 72 2e 20 20 | 54 68 69 73 20 54 65 63 |nager. |This Tec|
|000025b0| 68 6e 69 63 61 6c 20 4e | 6f 74 65 20 64 65 73 63 |hnical N|ote desc|
|000025c0| 72 69 62 65 73 20 74 68 | 65 20 70 72 6f 62 6c 65 |ribes th|e proble|
|000025d0| 6d 20 61 6e 64 20 65 78 | 70 6c 61 69 6e 73 20 68 |m and ex|plains h|
|000025e0| 6f 77 20 74 6f 20 6d 61 | 6b 65 20 79 6f 75 72 20 |ow to ma|ke your |
|000025f0| 27 4d 44 45 46 27 20 66 | 6c 61 73 68 20 63 6f 72 |'MDEF' f|lash cor|
|00002600| 72 65 63 74 6c 79 2e 0d | 4e 6f 74 20 6f 6e 20 74 |rectly..|Not on t|
|00002610| 68 65 20 4d 65 6e 75 0d | 54 68 65 72 65 20 69 73 |he Menu.|There is|
|00002620| 20 61 20 6b 6e 6f 77 6e | 20 62 75 67 20 69 6e 20 | a known| bug in |
|00002630| 74 68 65 20 4d 65 6e 75 | 20 4d 61 6e 61 67 65 72 |the Menu| Manager|
|00002640| d5 73 20 69 6e 74 65 72 | 66 61 63 65 20 74 6f 20 |.s inter|face to |
|00002650| 63 75 73 74 6f 6d 20 27 | 4d 44 45 46 27 20 72 65 |custom '|MDEF' re|
|00002660| 73 6f 75 72 63 65 73 20 | 77 68 69 63 68 20 63 61 |sources |which ca|
|00002670| 75 73 65 73 20 61 6e 20 | 69 74 65 6d 20 74 6f 20 |uses an |item to |
|00002680| 66 6c 61 73 68 20 69 6e | 63 6f 72 72 65 63 74 6c |flash in|correctl|
|00002690| 79 20 69 66 20 69 74 73 | 20 63 6f 72 72 65 73 70 |y if its| corresp|
|000026a0| 6f 6e 64 69 6e 67 20 6d | 65 6e 75 20 72 65 63 6f |onding m|enu reco|
|000026b0| 72 64 20 63 6f 6e 74 61 | 69 6e 73 20 6e 6f 20 74 |rd conta|ins no t|
|000026c0| 65 78 74 2e 20 20 49 66 | 20 74 68 65 72 65 20 69 |ext. If| there i|
|000026d0| 73 20 6e 6f 20 74 65 78 | 74 20 69 6e 20 74 68 65 |s no tex|t in the|
|000026e0| 20 74 68 65 20 63 68 6f | 73 65 6e 20 6d 65 6e 75 | the cho|sen menu|
|000026f0| 20 72 65 63 6f 72 64 2c | 20 74 68 65 20 4d 65 6e | record,| the Men|
|00002700| 75 20 4d 61 6e 61 67 65 | 72 20 6e 65 67 6c 65 63 |u Manage|r neglec|
|00002710| 74 73 20 74 6f 20 63 61 | 6c 6c 20 74 68 65 20 6d |ts to ca|ll the m|
|00002720| 65 6e 75 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 70 |enu defi|nition p|
|00002730| 72 6f 63 65 64 75 72 65 | 20 6d 75 6c 74 69 70 6c |rocedure| multipl|
|00002740| 65 20 74 69 6d 65 73 20 | 77 69 74 68 20 6d 43 68 |e times |with mCh|
|00002750| 6f 6f 73 65 4d 73 67 2c | 20 61 6e 64 20 74 68 65 |ooseMsg,| and the|
|00002760| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 69 | corresp|onding i|
|00002770| 74 65 6d 20 64 6f 65 73 | 20 6e 6f 74 20 66 6c 61 |tem does| not fla|
|00002780| 73 68 2e 20 20 49 66 20 | 74 68 65 72 65 20 69 73 |sh. If |there is|
|00002790| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 6d 65 6e | text in| the men|
|000027a0| 75 20 72 65 63 6f 72 64 | 2c 20 74 68 65 20 4d 65 |u record|, the Me|
|000027b0| 6e 75 20 4d 61 6e 61 67 | 65 72 20 63 61 6c 6c 73 |nu Manag|er calls|
|000027c0| 20 74 68 65 20 6d 65 6e | 75 20 64 65 66 69 6e 69 | the men|u defini|
|000027d0| 74 69 6f 6e 20 70 72 6f | 63 65 64 75 72 65 20 6d |tion pro|cedure m|
|000027e0| 75 6c 74 69 70 6c 65 20 | 74 69 6d 65 73 20 74 6f |ultiple |times to|
|000027f0| 20 66 6c 61 73 68 20 74 | 68 65 20 6d 65 6e 75 20 | flash t|he menu |
|00002800| 69 74 65 6d 2e 0d 4e 6f | 20 53 75 62 73 74 69 74 |item..No| Substit|
|00002810| 75 74 69 6f 6e 73 20 41 | 6c 6c 6f 77 65 64 0d 55 |utions A|llowed.U|
|00002820| 6e 74 69 6c 20 61 20 63 | 6f 72 72 65 63 74 65 64 |ntil a c|orrected|
|00002830| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|00002840| 4d 65 6e 75 20 4d 61 6e | 61 67 65 72 20 69 73 20 |Menu Man|ager is |
|00002850| 72 65 6c 65 61 73 65 64 | 2c 20 79 6f 75 20 63 61 |released|, you ca|
|00002860| 6e 20 6d 61 6b 65 20 79 | 6f 75 72 20 63 75 73 74 |n make y|our cust|
|00002870| 6f 6d 20 6d 65 6e 75 20 | 69 74 65 6d 73 20 66 6c |om menu |items fl|
|00002880| 61 73 68 20 62 79 20 61 | 64 64 69 6e 67 20 61 20 |ash by a|dding a |
|00002890| 64 75 6d 6d 79 20 74 65 | 78 74 20 6d 65 6e 75 20 |dummy te|xt menu |
|000028a0| 69 74 65 6d 20 69 6e 20 | 74 68 65 20 6d 65 6e 75 |item in |the menu|
|000028b0| 20 72 65 63 6f 72 64 20 | 63 6f 72 72 65 73 70 6f | record |correspo|
|000028c0| 6e 64 69 6e 67 20 74 6f | 20 65 61 63 68 20 69 74 |nding to| each it|
|000028d0| 65 6d 20 69 6e 20 79 6f | 75 72 20 63 75 73 74 6f |em in yo|ur custo|
|000028e0| 6d 20 27 4d 44 45 46 27 | 2e 0d 46 6f 72 20 45 78 |m 'MDEF'|..For Ex|
|000028f0| 61 6d 70 6c 65 c9 0d 57 | 68 65 6e 20 75 73 69 6e |ample..W|hen usin|
|00002900| 67 20 61 20 4d 61 63 69 | 6e 74 6f 73 68 20 77 69 |g a Maci|ntosh wi|
|00002910| 74 68 20 63 6f 6c 6f 72 | 2c 20 6e 6f 74 69 63 65 |th color|, notice|
|00002920| 20 74 68 61 74 20 69 74 | 65 6d 73 20 69 6e 20 74 | that it|ems in t|
|00002930| 68 65 20 46 69 6e 64 65 | 72 d5 73 20 43 6f 6c 6f |he Finde|r.s Colo|
|00002940| 72 20 6d 65 6e 75 20 28 | 6f 74 68 65 72 20 74 68 |r menu (|other th|
|00002950| 61 6e 20 74 68 65 20 66 | 69 72 73 74 20 6f 6e 65 |an the f|irst one|
|00002960| 29 20 64 6f 20 6e 6f 74 | 20 66 6c 61 73 68 2e 20 |) do not| flash. |
|00002970| 20 45 64 69 74 20 74 68 | 65 20 27 4d 45 4e 55 27 | Edit th|e 'MENU'|
|00002980| 20 72 65 73 6f 75 72 63 | 65 20 28 69 64 3d 31 36 | resourc|e (id=16|
|00002990| 29 20 69 6e 20 61 20 63 | 6f 70 79 20 6f 66 20 74 |) in a c|opy of t|
|000029a0| 68 65 20 46 69 6e 64 65 | 72 2e 20 20 41 66 74 65 |he Finde|r. Afte|
|000029b0| 72 20 6d 65 6e 75 20 69 | 74 65 6d 20 d2 78 d3 20 |r menu i|tem .x. |
|000029c0| 61 64 64 20 6d 65 6e 75 | 20 69 74 65 6d 73 20 d2 |add menu| items .|
|000029d0| 62 2c d3 20 d2 63 2c d3 | 20 d2 64 2c d3 20 d2 65 |b,. .c,.| .d,. .e|
|000029e0| 2c d3 20 d2 66 2c d3 20 | d2 67 2c d3 20 61 6e 64 |,. .f,. |.g,. and|
|000029f0| 20 d2 68 d3 20 28 6f 72 | 20 6f 74 68 65 72 20 6c | .h. (or| other l|
|00002a00| 65 67 65 6e 64 73 20 6f | 66 20 79 6f 75 72 20 6f |egends o|f your o|
|00002a10| 77 6e 20 63 68 6f 6f 73 | 69 6e 67 29 20 74 6f 20 |wn choos|ing) to |
|00002a20| 63 6f 72 72 65 73 70 6f | 6e 64 20 74 6f 20 74 68 |correspo|nd to th|
|00002a30| 65 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 73 65 76 |e additi|onal sev|
|00002a40| 65 6e 20 43 6f 6c 6f 72 | 20 6d 65 6e 75 20 69 74 |en Color| menu it|
|00002a50| 65 6d 73 2e 20 20 41 66 | 74 65 72 20 72 65 62 6f |ems. Af|ter rebo|
|00002a60| 6f 74 69 6e 67 20 77 69 | 74 68 20 74 68 69 73 20 |oting wi|th this |
|00002a70| 65 64 69 74 65 64 20 46 | 69 6e 64 65 72 2c 20 73 |edited F|inder, s|
|00002a80| 65 6c 65 63 74 69 6f 6e | 73 20 66 72 6f 6d 20 74 |election|s from t|
|00002a90| 68 65 20 46 69 6e 64 65 | 72 d5 73 20 43 6f 6c 6f |he Finde|r.s Colo|
|00002aa0| 72 20 6d 65 6e 75 20 73 | 68 6f 75 6c 64 20 6e 6f |r menu s|hould no|
|00002ab0| 77 20 66 6c 61 73 68 20 | 63 6f 72 72 65 63 74 6c |w flash |correctl|
|00002ac0| 79 2e 0d 46 75 72 74 68 | 65 72 20 52 65 66 65 72 |y..Furth|er Refer|
|00002ad0| 65 6e 63 65 3a 0d a5 09 | 49 6e 73 69 64 65 20 4d |ence:...|Inside M|
|00002ae0| 61 63 69 6e 74 6f 73 68 | 2c 20 56 6f 6c 75 6d 65 |acintosh|, Volume|
|00002af0| 20 49 2d 33 33 39 2c 20 | 54 68 65 20 4d 65 6e 75 | I-339, |The Menu|
|00002b00| 20 4d 61 6e 61 67 65 72 | 0d 54 42 20 35 20 2d 20 | Manager|.TB 5 - |
|00002b10| 43 75 73 74 6f 6d 20 57 | 44 45 46 20 61 6e 64 20 |Custom W|DEF and |
|00002b20| 77 44 72 61 77 0d 54 6f | 6f 6c 62 6f 78 09 0d 57 |wDraw.To|olbox..W|
|00002b30| 72 69 74 74 65 6e 20 62 | 79 3a 09 56 69 6e 63 65 |ritten b|y:.Vince|
|00002b40| 6e 74 20 4c 6f 09 46 65 | 62 72 75 61 72 79 20 31 |nt Lo.Fe|bruary 1|
|00002b50| 39 39 31 0d 54 68 69 73 | 20 54 65 63 68 6e 69 63 |991.This| Technic|
|00002b60| 61 6c 20 4e 6f 74 65 20 | 65 78 70 6c 61 69 6e 73 |al Note |explains|
|00002b70| 20 77 68 79 20 63 75 73 | 74 6f 6d 20 77 69 6e 64 | why cus|tom wind|
|00002b80| 6f 77 20 64 65 66 69 6e | 69 74 69 6f 6e 20 66 75 |ow defin|ition fu|
|00002b90| 6e 63 74 69 6f 6e 73 20 | 6d 61 79 20 6e 6f 74 20 |nctions |may not |
|00002ba0| 72 65 73 70 6f 6e 64 20 | 74 6f 20 61 20 77 44 72 |respond |to a wDr|
|00002bb0| 61 77 20 6d 65 73 73 61 | 67 65 20 66 72 6f 6d 20 |aw messa|ge from |
|00002bc0| 74 68 65 20 73 79 73 74 | 65 6d 20 28 69 66 20 79 |the syst|em (if y|
|00002bd0| 6f 75 20 66 6f 6c 6c 6f | 77 20 74 68 65 20 64 6f |ou follo|w the do|
|00002be0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 69 6e 20 49 |cumentat|ion in I|
|00002bf0| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 29 |nside Ma|cintosh)|
|00002c00| 2e 0d 50 72 6f 62 6c 65 | 6d 20 26 20 53 6f 6c 75 |..Proble|m & Solu|
|00002c10| 74 69 6f 6e 3a 0d 49 6e | 73 69 64 65 20 4d 61 63 |tion:.In|side Mac|
|00002c20| 69 6e 74 6f 73 68 2c 20 | 56 6f 6c 75 6d 65 20 49 |intosh, |Volume I|
|00002c30| 2d 32 39 39 2c 20 64 6f | 63 75 6d 65 6e 74 73 20 |-299, do|cuments |
|00002c40| 74 68 65 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |the decl|aration |
|00002c50| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 64 65 |of the w|indow de|
|00002c60| 66 69 6e 69 74 69 6f 6e | 20 66 75 6e 63 74 69 6f |finition| functio|
|00002c70| 6e 20 28 57 44 45 46 29 | 20 61 73 20 66 6f 6c 6c |n (WDEF)| as foll|
|00002c80| 6f 77 73 3a 0d 20 20 20 | 20 46 55 4e 43 54 49 4f |ows:. | FUNCTIO|
|00002c90| 4e 20 4d 79 57 69 6e 64 | 6f 77 28 76 61 72 43 6f |N MyWind|ow(varCo|
|00002ca0| 64 65 3a 20 49 4e 54 45 | 47 45 52 3b 20 74 68 65 |de: INTE|GER; the|
|00002cb0| 57 69 6e 64 6f 77 3a 20 | 57 69 6e 64 6f 77 50 74 |Window: |WindowPt|
|00002cc0| 72 3b 20 6d 65 73 73 61 | 67 65 3a 0d 20 20 20 20 |r; messa|ge:. |
|00002cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ce0| 20 20 49 4e 54 45 47 45 | 52 3b 20 70 61 72 61 6d | INTEGE|R; param|
|00002cf0| 3a 20 4c 4f 4e 47 49 4e | 54 29 20 3a 20 4c 4f 4e |: LONGIN|T) : LON|
|00002d00| 47 49 4e 54 3b 0d 4f 6e | 20 74 68 65 20 66 69 72 |GINT;.On| the fir|
|00002d10| 73 74 20 65 78 61 6d 69 | 6e 61 74 69 6f 6e 20 6f |st exami|nation o|
|00002d20| 66 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |f the pa|rameters|
|00002d30| 2c 20 6f 6e 65 20 6d 61 | 79 20 61 73 73 75 6d 65 |, one ma|y assume|
|00002d40| 20 70 61 72 61 6d 20 61 | 6c 77 61 79 73 20 63 6f | param a|lways co|
|00002d50| 6e 74 61 69 6e 73 20 61 | 20 6c 6f 6e 67 20 76 61 |ntains a| long va|
|00002d60| 6c 75 65 3b 20 68 6f 77 | 65 76 65 72 2c 20 77 68 |lue; how|ever, wh|
|00002d70| 65 6e 20 74 68 65 20 73 | 79 73 74 65 6d 20 69 73 |en the s|ystem is|
|00002d80| 20 63 61 6c 6c 69 6e 67 | 20 74 68 65 20 57 44 45 | calling| the WDE|
|00002d90| 46 20 77 69 74 68 20 6d | 65 73 73 61 67 65 20 3d |F with m|essage =|
|00002da0| 20 77 44 72 61 77 2c 20 | 69 74 20 6f 6e 6c 79 20 | wDraw, |it only |
|00002db0| 73 74 6f 72 65 73 20 61 | 20 73 68 6f 72 74 20 76 |stores a| short v|
|00002dc0| 61 6c 75 65 20 69 6e 20 | 70 61 72 61 6d 20 77 69 |alue in |param wi|
|00002dd0| 74 68 6f 75 74 20 63 6c | 65 61 72 69 6e 67 20 74 |thout cl|earing t|
|00002de0| 68 65 20 68 69 67 68 2d | 6f 72 64 65 72 20 77 6f |he high-|order wo|
|00002df0| 72 64 20 6f 66 20 70 61 | 72 61 6d 2e 20 20 49 66 |rd of pa|ram. If|
|00002e00| 20 74 68 65 20 68 69 67 | 68 2d 6f 72 64 65 72 20 | the hig|h-order |
|00002e10| 77 6f 72 64 20 63 6f 6e | 74 61 69 6e 73 20 61 6e |word con|tains an|
|00002e20| 79 20 76 61 6c 75 65 20 | 6f 74 68 65 72 20 74 68 |y value |other th|
|00002e30| 61 6e 20 7a 65 72 6f 2c | 20 74 68 65 20 63 6f 6e |an zero,| the con|
|00002e40| 74 65 6e 74 20 6f 66 20 | 70 61 72 61 6d 20 69 73 |tent of |param is|
|00002e50| 20 64 69 66 66 65 72 65 | 6e 74 20 66 72 6f 6d 20 | differe|nt from |
|00002e60| 77 68 61 74 20 74 68 65 | 20 57 44 45 46 20 65 78 |what the| WDEF ex|
|00002e70| 70 65 63 74 73 2e 0d 46 | 6f 72 20 74 68 65 20 63 |pects..F|or the c|
|00002e80| 75 73 74 6f 6d 20 57 44 | 45 46 20 74 6f 20 77 6f |ustom WD|EF to wo|
|00002e90| 72 6b 20 63 6f 72 72 65 | 63 74 6c 79 2c 20 69 74 |rk corre|ctly, it|
|00002ea0| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 6f 6e 6c 79 | should |use only|
|00002eb0| 20 74 68 65 20 6c 6f 77 | 2d 6f 72 64 65 72 20 77 | the low|-order w|
|00002ec0| 6f 72 64 20 6f 66 20 70 | 61 72 61 6d 20 77 68 65 |ord of p|aram whe|
|00002ed0| 6e 20 6d 65 73 73 61 67 | 65 20 3d 20 77 44 72 61 |n messag|e = wDra|
|00002ee0| 77 2e 0d 4e 6f 74 65 3a | 09 54 68 69 73 20 70 72 |w..Note:|.This pr|
|00002ef0| 6f 62 6c 65 6d 20 65 78 | 69 73 74 73 20 69 6e 20 |oblem ex|ists in |
|00002f00| 61 6c 6c 20 73 79 73 74 | 65 6d 73 20 75 70 20 74 |all syst|ems up t|
|00002f10| 6f 20 61 6e 64 20 69 6e | 63 6c 75 64 69 6e 67 20 |o and in|cluding |
|00002f20| 53 79 73 74 65 6d 20 53 | 6f 66 74 77 61 72 65 20 |System S|oftware |
|00002f30| 37 2e 30 2e 20 20 54 68 | 65 20 73 75 67 67 65 73 |7.0. Th|e sugges|
|00002f40| 74 65 64 20 66 69 78 20 | 69 73 20 76 61 6c 69 64 |ted fix |is valid|
|00002f50| 20 66 6f 72 20 61 6c 6c | 20 6f 66 20 74 68 65 73 | for all| of thes|
|00002f60| 65 20 73 79 73 74 65 6d | 73 2e 0d 54 42 20 36 20 |e system|s..TB 6 |
|00002f70| 2d 20 52 65 73 6f 75 72 | 63 65 73 20 43 6f 6e 74 |- Resour|ces Cont|
|00002f80| 61 69 6e 65 64 20 69 6e | 20 74 68 65 20 44 65 73 |ained in| the Des|
|00002f90| 6b 74 6f 70 20 46 69 6c | 65 0d 54 6f 6f 6c 62 6f |ktop Fil|e.Toolbo|
|00002fa0| 78 09 0d 52 65 76 69 73 | 65 64 20 62 79 3a 09 47 |x..Revis|ed by:.G|
|00002fb0| 69 6e 67 65 72 20 4a 65 | 72 6e 69 67 61 6e 09 4d |inger Je|rnigan.M|
|00002fc0| 61 72 63 68 20 31 39 38 | 38 0d 57 72 69 74 74 65 |arch 198|8.Writte|
|00002fd0| 6e 20 62 79 3a 09 47 69 | 6e 67 65 72 20 4a 65 72 |n by:.Gi|nger Jer|
|00002fe0| 6e 69 67 61 6e 09 4d 61 | 79 20 31 39 38 35 0d 54 |nigan.Ma|y 1985.T|
|00002ff0| 68 69 73 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |his Tech|nical No|
|00003000| 74 65 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |te descr|ibes the|
|00003010| 20 72 65 73 6f 75 72 63 | 65 73 20 66 6f 75 6e 64 | resourc|es found|
|00003020| 20 69 6e 20 74 68 65 20 | 44 65 73 6b 74 6f 70 20 | in the |Desktop |
|00003030| 66 69 6c 65 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |file. Y|ou shoul|
|00003040| 64 20 6e 6f 74 20 62 61 | 73 65 20 61 6e 79 74 68 |d not ba|se anyth|
|00003050| 69 6e 67 20 63 72 69 74 | 69 63 61 6c 20 6f 6e 20 |ing crit|ical on |
|00003060| 74 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 74 68 |the form|at of th|
|00003070| 65 20 44 65 73 6b 74 6f | 70 20 66 69 6c 65 2e 20 |e Deskto|p file. |
|00003080| 53 79 73 74 65 6d 20 37 | 20 61 6c 72 65 61 64 79 |System 7| already|
|00003090| 20 75 73 65 73 20 61 6e | 6f 74 68 65 72 20 73 63 | uses an|other sc|
|000030a0| 68 65 6d 65 20 61 73 20 | 64 69 64 20 41 70 70 6c |heme as |did Appl|
|000030b0| 65 53 68 61 72 65 20 32 | 2e 30 20 75 6e 64 65 72 |eShare 2|.0 under|
|000030c0| 20 53 79 73 74 65 6d 20 | 36 2e 30 2e 78 2e 0d 54 | System |6.0.x..T|
|000030d0| 68 65 20 44 65 73 6b 74 | 6f 70 20 66 69 6c 65 20 |he Deskt|op file |
|000030e0| 63 6f 6e 74 61 69 6e 73 | 20 61 6c 6d 6f 73 74 20 |contains| almost |
|000030f0| 74 68 65 20 73 61 6d 65 | 20 72 65 73 6f 75 72 63 |the same| resourc|
|00003100| 65 73 20 66 6f 72 20 62 | 6f 74 68 20 74 68 65 20 |es for b|oth the |
|00003110| 4d 61 63 69 6e 74 6f 73 | 68 20 46 69 6c 65 20 53 |Macintos|h File S|
|00003120| 79 73 74 65 6d 20 28 4d | 46 53 29 20 61 6e 64 20 |ystem (M|FS) and |
|00003130| 74 68 65 20 48 69 65 72 | 61 72 63 68 69 63 61 6c |the Hier|archical|
|00003140| 20 46 69 6c 65 20 53 79 | 73 74 65 6d 20 28 48 46 | File Sy|stem (HF|
|00003150| 53 29 2e 20 54 68 69 73 | 20 54 65 63 68 6e 69 63 |S). This| Technic|
|00003160| 61 6c 20 4e 6f 74 65 20 | 64 65 73 63 72 69 62 65 |al Note |describe|
|00003170| 73 20 74 68 65 20 72 65 | 73 6f 75 72 63 65 73 20 |s the re|sources |
|00003180| 66 6f 75 6e 64 20 69 6e | 20 62 6f 74 68 2e 20 54 |found in| both. T|
|00003190| 68 69 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |his info|rmation |
|000031a0| 69 73 20 66 6f 72 20 72 | 65 61 64 69 6e 67 20 6f |is for r|eading o|
|000031b0| 6e 6c 79 2e 20 54 68 69 | 73 20 6d 65 61 6e 73 20 |nly. Thi|s means |
|000031c0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|000031d0| 20 63 61 6e 20 72 65 61 | 64 20 69 74 20 62 75 74 | can rea|d it but|
|000031e0| 20 69 74 20 73 68 6f 75 | 6c 64 20 6e 65 76 65 72 | it shou|ld never|
|000031f0| 20 77 72 69 74 65 20 6f | 75 74 20 69 6e 66 6f 72 | write o|ut infor|
|00003200| 6d 61 74 69 6f 6e 20 6f | 66 20 69 74 73 20 6f 77 |mation o|f its ow|
|00003210| 6e 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 20 46 |n, becau|se the F|
|00003220| 69 6e 64 65 72 2c 20 61 | 73 20 77 65 6c 6c 20 61 |inder, a|s well a|
|00003230| 73 20 4d 61 63 69 6e 74 | 6f 73 68 20 44 65 76 65 |s Macint|osh Deve|
|00003240| 6c 6f 70 65 72 20 54 65 | 63 68 6e 69 63 61 6c 20 |loper Te|chnical |
|00003250| 53 75 70 70 6f 72 74 2c | 20 77 6f 6e d5 74 20 6c |Support,| won.t l|
|00003260| 69 6b 65 20 69 74 2e 0d | 54 68 65 20 44 65 73 6b |ike it..|The Desk|
|00003270| 74 6f 70 20 69 73 20 61 | 20 72 65 73 6f 75 72 63 |top is a| resourc|
|00003280| 65 20 66 69 6c 65 20 77 | 68 69 63 68 20 63 6f 6e |e file w|hich con|
|00003290| 74 61 69 6e 73 20 74 68 | 65 20 66 6f 6c 64 65 72 |tains th|e folder|
|000032a0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|000032b0| 61 6e 20 4d 46 53 20 76 | 6f 6c 75 6d 65 2c 20 74 |an MFS v|olume, t|
|000032c0| 68 65 20 d2 47 65 74 20 | 49 6e 66 6f d3 20 63 6f |he .Get |Info. co|
|000032d0| 6d 6d 65 6e 74 73 2c 20 | 74 68 65 20 61 70 70 6c |mments, |the appl|
|000032e0| 69 63 61 74 69 6f 6e 20 | 62 75 6e 64 6c 65 73 2c |ication |bundles,|
|000032f0| 20 27 46 52 45 46 27 20 | 61 6e 64 20 27 49 43 4e | 'FREF' |and 'ICN|
|00003300| 23 27 20 72 65 73 6f 75 | 72 63 65 73 2c 20 61 6e |#' resou|rces, an|
|00003310| 64 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 63 6f |d inform|ation co|
|00003320| 6e 63 65 72 6e 69 6e 67 | 20 74 68 65 20 77 68 65 |ncerning| the whe|
|00003330| 72 65 61 62 6f 75 74 73 | 20 6f 66 20 61 70 70 6c |reabouts| of appl|
|00003340| 69 63 61 74 69 6f 6e 73 | 20 6f 6e 20 61 6e 20 48 |ications| on an H|
|00003350| 46 53 20 64 69 73 6b 2e | 20 20 45 76 65 72 79 74 |FS disk.| Everyt|
|00003360| 68 69 6e 67 20 65 78 63 | 65 70 74 20 74 68 65 20 |hing exc|ept the |
|00003370| 63 6f 6d 6d 65 6e 74 73 | 20 61 72 65 20 70 72 65 |comments| are pre|
|00003380| 6c 6f 61 64 65 64 20 77 | 68 65 6e 20 74 68 65 20 |loaded w|hen the |
|00003390| 64 65 73 6b 74 6f 70 20 | 69 73 20 6f 70 65 6e 65 |desktop |is opene|
|000033a0| 64 2c 20 6d 61 6b 69 6e | 67 20 69 74 20 65 61 73 |d, makin|g it eas|
|000033b0| 69 65 72 20 66 6f 72 20 | 74 68 65 20 46 69 6e 64 |ier for |the Find|
|000033c0| 65 72 20 74 6f 20 66 69 | 6e 64 20 74 68 69 6e 67 |er to fi|nd thing|
|000033d0| 73 2e 0d 54 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |s..The c|ontents |
|000033e0| 6f 66 20 74 68 65 20 44 | 65 73 6b 74 6f 70 20 66 |of the D|esktop f|
|000033f0| 69 6c 65 20 61 72 65 20 | 64 65 73 63 72 69 62 65 |ile are |describe|
|00003400| 64 20 62 65 6c 6f 77 2e | 20 54 68 65 20 72 65 73 |d below.| The res|
|00003410| 6f 75 72 63 65 20 74 79 | 70 65 73 20 61 72 65 20 |ource ty|pes are |
|00003420| 74 68 65 20 73 61 6d 65 | 20 66 6f 72 20 62 6f 74 |the same| for bot|
|00003430| 68 20 4d 46 53 20 61 6e | 64 20 48 46 53 20 76 6f |h MFS an|d HFS vo|
|00003440| 6c 75 6d 65 73 20 75 6e | 6c 65 73 73 20 6f 74 68 |lumes un|less oth|
|00003450| 65 72 77 69 73 65 20 73 | 74 61 74 65 64 2e 0d 27 |erwise s|tated..'|
|00003460| 41 50 50 4c 27 3a 09 54 | 68 69 73 20 72 65 73 6f |APPL':.T|his reso|
|00003470| 75 72 63 65 20 74 79 70 | 65 20 69 73 20 75 73 65 |urce typ|e is use|
|00003480| 64 20 62 79 20 74 68 65 | 20 48 46 53 20 74 6f 20 |d by the| HFS to |
|00003490| 6c 6f 63 61 74 65 20 61 | 70 70 6c 69 63 61 74 69 |locate a|pplicati|
|000034a0| 6f 6e 73 2e 20 54 68 69 | 73 20 69 73 20 75 73 65 |ons. Thi|s is use|
|000034b0| 64 20 62 79 20 74 68 65 | 20 46 69 6e 64 65 72 20 |d by the| Finder |
|000034c0| 74 6f 20 6c 6f 63 61 74 | 65 20 74 68 65 20 72 69 |to locat|e the ri|
|000034d0| 67 68 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ght appl|ication |
|000034e0| 77 68 65 6e 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 |when a d|ocument |
|000034f0| 69 73 20 6f 70 65 6e 65 | 64 2e 20 45 61 63 68 20 |is opene|d. Each |
|00003500| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 73 20 69 |applicat|ion is i|
|00003510| 64 65 6e 74 69 66 69 65 | 64 20 62 79 20 74 68 65 |dentifie|d by the|
|00003520| 20 63 72 65 61 74 6f 72 | 2c 20 74 68 65 20 64 69 | creator|, the di|
|00003530| 72 65 63 74 6f 72 79 20 | 6e 75 6d 62 65 72 2c 20 |rectory |number, |
|00003540| 61 6e 64 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |and the |applicat|
|00003550| 69 6f 6e 20 6e 61 6d 65 | 2e 20 54 68 69 73 20 69 |ion name|. This i|
|00003560| 73 20 75 73 65 64 20 6f | 6e 6c 79 20 62 79 20 48 |s used o|nly by H|
|00003570| 46 53 2e 0d 27 42 4e 44 | 4c 27 3a 09 54 68 69 73 |FS..'BND|L':.This|
|00003580| 20 72 65 73 6f 75 72 63 | 65 20 74 79 70 65 20 63 | resourc|e type c|
|00003590| 6f 6e 74 61 69 6e 73 20 | 61 20 63 6f 70 79 20 6f |ontains |a copy o|
|000035a0| 66 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 62 75 6e |f all of| the bun|
|000035b0| 64 6c 65 73 20 66 6f 72 | 20 61 6c 6c 20 6f 66 20 |dles for| all of |
|000035c0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |the appl|ications|
|000035d0| 20 74 68 61 74 20 61 72 | 65 20 65 69 74 68 65 72 | that ar|e either|
|000035e0| 20 6f 6e 20 74 68 65 20 | 64 69 73 6b 20 6f 72 20 | on the |disk or |
|000035f0| 61 72 65 20 74 68 65 20 | 63 72 65 61 74 6f 72 73 |are the |creators|
|00003600| 20 6f 66 20 64 6f 63 75 | 6d 65 6e 74 73 20 74 68 | of docu|ments th|
|00003610| 61 74 20 61 72 65 20 6f | 6e 20 74 68 65 20 64 69 |at are o|n the di|
|00003620| 73 6b 2e 20 54 68 69 73 | 20 69 73 20 75 73 65 64 |sk. This| is used|
|00003630| 20 62 79 20 74 68 65 20 | 46 69 6e 64 65 72 20 74 | by the |Finder t|
|00003640| 6f 20 66 69 6e 64 20 74 | 68 65 20 72 69 67 68 74 |o find t|he right|
|00003650| 20 69 63 6f 6e 73 20 66 | 6f 72 20 64 6f 63 75 6d | icons f|or docum|
|00003660| 65 6e 74 73 20 61 6e 64 | 20 61 70 70 6c 69 63 61 |ents and| applica|
|00003670| 74 69 6f 6e 73 2e 20 49 | 66 20 79 6f 75 20 68 61 |tions. I|f you ha|
|00003680| 76 65 20 61 20 64 6f 63 | 75 6d 65 6e 74 20 77 68 |ve a doc|ument wh|
|00003690| 6f 73 65 20 63 72 65 61 | 74 6f 72 20 74 68 65 20 |ose crea|tor the |
|000036a0| 46 69 6e 64 65 72 20 68 | 61 73 20 6e 6f 74 20 73 |Finder h|as not s|
|000036b0| 65 65 6e 20 79 65 74 2c | 20 69 74 20 77 69 6c 6c |een yet,| it will|
|000036c0| 20 6e 6f 74 20 62 65 20 | 69 6e 20 74 68 65 20 44 | not be |in the D|
|000036d0| 65 73 6b 74 6f 70 20 66 | 69 6c 65 20 61 6e 64 20 |esktop f|ile and |
|000036e0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 64 6f 63 75 |the defa|ult docu|
|000036f0| 6d 65 6e 74 20 69 63 6f | 6e 20 77 69 6c 6c 20 62 |ment ico|n will b|
|00003700| 65 20 75 73 65 64 2e 0d | 27 46 52 45 46 27 3a 09 |e used..|'FREF':.|
|00003710| 54 68 69 73 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |This con|tains a |
|00003720| 63 6f 70 79 20 6f 66 20 | 61 6c 6c 20 6f 66 20 74 |copy of |all of t|
|00003730| 68 65 20 27 46 52 45 46 | 27 20 72 65 73 6f 75 72 |he 'FREF|' resour|
|00003740| 63 65 73 20 72 65 66 65 | 72 65 6e 63 65 64 20 69 |ces refe|renced i|
|00003750| 6e 20 74 68 65 20 62 75 | 6e 64 6c 65 73 2e 0d 27 |n the bu|ndles..'|
|00003760| 46 43 4d 54 27 3a 09 54 | 68 69 73 20 72 65 73 6f |FCMT':.T|his reso|
|00003770| 75 72 63 65 20 63 6f 6e | 74 61 69 6e 73 20 61 6c |urce con|tains al|
|00003780| 6c 20 6f 66 20 74 68 65 | 20 d2 47 65 74 20 49 6e |l of the| .Get In|
|00003790| 66 6f d3 20 63 6f 6d 6d | 65 6e 74 73 20 66 6f 72 |fo. comm|ents for|
|000037a0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 6e | applica|tions an|
|000037b0| 64 20 64 6f 63 75 6d 65 | 6e 74 73 2e 20 4f 6e 20 |d docume|nts. On |
|000037c0| 4d 46 53 20 76 6f 6c 75 | 6d 65 73 20 74 68 65 20 |MFS volu|mes the |
|000037d0| 49 44 20 69 73 20 61 20 | 68 61 73 68 20 6f 66 20 |ID is a |hash of |
|000037e0| 74 68 65 20 6f 62 6a 65 | 63 74 d5 73 20 6e 61 6d |the obje|ct.s nam|
|000037f0| 65 2e 20 54 68 65 20 68 | 61 73 68 69 6e 67 20 61 |e. The h|ashing a|
|00003800| 6c 67 6f 72 69 74 68 6d | 20 69 73 20 61 73 20 66 |lgorithm| is as f|
|00003810| 6f 6c 6c 6f 77 73 3a 0d | 09 3b 20 46 55 4e 43 54 |ollows:.|.; FUNCT|
|00003820| 49 4f 4e 20 48 61 73 68 | 53 74 72 69 6e 67 28 73 |ION Hash|String(s|
|00003830| 74 72 3a 20 53 74 72 32 | 35 35 29 3a 20 49 4e 54 |tr: Str2|55): INT|
|00003840| 45 47 45 52 3b 0d 09 3b | 20 54 68 65 20 49 44 20 |EGER;..;| The ID |
|00003850| 66 6f 72 20 74 68 65 20 | 46 43 4d 54 20 72 65 74 |for the |FCMT ret|
|00003860| 75 72 6e 65 64 20 69 6e | 20 66 75 6e 63 74 69 6f |urned in| functio|
|00003870| 6e 20 72 65 73 75 6c 74 | 0d 09 48 61 73 68 53 74 |n result|..HashSt|
|00003880| 72 69 6e 67 0d 09 20 20 | 20 20 20 20 4d 4f 56 45 |ring.. | MOVE|
|00003890| 2e 4c 20 20 20 28 53 50 | 29 2b 2c 41 30 20 20 20 |.L (SP|)+,A0 |
|000038a0| 20 20 20 20 3b 20 67 65 | 74 20 72 65 74 75 72 6e | ; ge|t return|
|000038b0| 20 61 64 64 72 65 73 73 | 0d 09 20 20 20 20 20 20 | address|.. |
|000038c0| 4d 4f 56 45 2e 4c 20 20 | 20 28 53 50 29 2b 2c 41 |MOVE.L | (SP)+,A|
|000038d0| 31 20 20 20 20 20 20 20 | 3b 20 67 65 74 20 73 74 |1 |; get st|
|000038e0| 72 69 6e 67 20 70 6f 69 | 6e 74 65 72 0d 09 20 20 |ring poi|nter.. |
|000038f0| 20 20 20 20 4d 4f 56 45 | 51 20 20 20 20 23 30 2c | MOVE|Q #0,|
|00003900| 44 30 20 20 20 20 20 20 | 20 20 20 20 3b 20 67 65 |D0 | ; ge|
|00003910| 74 20 73 74 72 69 6e 67 | 20 6c 65 6e 67 74 68 0d |t string| length.|
|00003920| 09 20 20 20 20 20 20 4d | 4f 56 45 2e 42 20 20 20 |. M|OVE.B |
|00003930| 28 41 31 29 2b 2c 44 30 | 0d 09 20 20 20 20 20 20 |(A1)+,D0|.. |
|00003940| 4d 4f 56 45 51 20 20 20 | 20 23 30 2c 44 32 20 20 |MOVEQ | #0,D2 |
|00003950| 20 20 20 20 20 20 20 20 | 3b 20 61 63 63 75 6d 75 | |; accumu|
|00003960| 6c 61 74 65 20 49 44 20 | 68 65 72 65 0d 09 40 32 |late ID |here..@2|
|00003970| 0d 09 20 20 20 20 20 20 | 4d 4f 56 45 2e 42 20 20 |.. |MOVE.B |
|00003980| 20 28 41 31 29 2b 2c 44 | 31 20 20 20 20 20 20 20 | (A1)+,D|1 |
|00003990| 3b 20 67 65 74 20 6e 65 | 78 74 20 63 68 61 72 0d |; get ne|xt char.|
|000039a0| 09 20 20 20 20 20 20 45 | 4f 52 2e 42 20 20 20 20 |. E|OR.B |
|000039b0| 44 31 2c 44 32 20 20 20 | 20 20 20 20 20 20 20 3b |D1,D2 | ;|
|000039c0| 20 58 4f 52 20 69 6e 0d | 09 20 20 20 20 20 20 52 | XOR in.|. R|
|000039d0| 4f 52 2e 57 20 20 20 20 | 23 31 2c 44 32 20 20 20 |OR.W |#1,D2 |
|000039e0| 20 20 20 20 20 20 20 3b | 20 73 74 69 72 20 74 68 | ;| stir th|
|000039f0| 69 6e 67 73 20 75 70 0d | 09 20 20 20 20 20 20 42 |ings up.|. B|
|00003a00| 4d 49 2e 53 20 20 20 20 | 40 31 20 20 20 20 20 20 |MI.S |@1 |
|00003a10| 20 20 20 20 20 20 20 3b | 20 49 44 20 6d 75 73 74 | ;| ID must|
|00003a20| 20 62 65 20 6e 65 67 61 | 74 69 76 65 0d 09 20 20 | be nega|tive.. |
|00003a30| 20 20 20 20 4e 45 47 2e | 57 20 20 20 20 44 32 0d | NEG.|W D2.|
|00003a40| 09 40 31 0d 09 20 20 20 | 20 20 20 53 55 42 51 2e |.@1.. | SUBQ.|
|00003a50| 57 20 20 20 23 31 2c 44 | 30 20 20 20 20 20 20 20 |W #1,D|0 |
|00003a60| 20 20 20 3b 20 6c 6f 6f | 70 20 75 6e 74 69 6c 20 | ; loo|p until |
|00003a70| 64 6f 6e 65 0d 09 20 20 | 20 20 20 20 42 4e 45 2e |done.. | BNE.|
|00003a80| 53 20 20 20 20 40 32 20 | 20 20 20 20 20 20 20 20 |S @2 | |
|00003a90| 20 20 20 20 3b 20 75 6e | 74 69 6c 20 65 6e 64 20 | ; un|til end |
|00003aa0| 6f 66 20 73 74 72 69 6e | 67 0d 09 20 20 20 20 20 |of strin|g.. |
|00003ab0| 20 4d 4f 56 45 20 20 20 | 20 20 44 32 2c 28 53 50 | MOVE | D2,(SP|
|00003ac0| 29 20 20 20 20 20 20 20 | 20 3b 20 72 65 74 75 72 |) | ; retur|
|00003ad0| 6e 20 74 68 65 20 68 61 | 73 68 65 64 20 63 6f 64 |n the ha|shed cod|
|00003ae0| 65 0d 09 20 20 20 20 20 | 20 4a 4d 50 20 20 20 20 |e.. | JMP |
|00003af0| 20 20 28 41 30 29 0d 09 | 46 6f 72 20 48 46 53 20 | (A0)..|For HFS |
|00003b00| 76 6f 6c 75 6d 65 73 2c | 20 74 68 65 20 49 44 20 |volumes,| the ID |
|00003b10| 6f 66 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |of the r|esource |
|00003b20| 69 73 20 72 61 6e 64 6f | 6d 6c 79 20 67 65 6e 65 |is rando|mly gene|
|00003b30| 72 61 74 65 64 20 75 73 | 69 6e 67 20 55 6e 69 71 |rated us|ing Uniq|
|00003b40| 75 65 49 44 2e 20 54 6f | 20 66 69 6e 64 20 74 68 |ueID. To| find th|
|00003b50| 65 20 49 44 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d |e ID of |the comm|
|00003b60| 65 6e 74 20 66 6f 72 20 | 61 20 66 69 6c 65 20 6f |ent for |a file o|
|00003b70| 72 20 64 69 72 65 63 74 | 6f 72 79 20 63 61 6c 6c |r direct|ory call|
|00003b80| 20 50 42 47 65 74 43 61 | 74 49 6e 66 6f 2e 20 54 | PBGetCa|tInfo. T|
|00003b90| 68 65 20 63 6f 6d 6d 65 | 6e 74 20 49 44 20 66 6f |he comme|nt ID fo|
|00003ba0| 72 20 61 20 66 69 6c 65 | 20 69 73 20 6b 65 70 74 |r a file| is kept|
|00003bb0| 20 69 6e 20 69 6f 46 6c | 58 46 6e 64 72 49 6e 66 | in ioFl|XFndrInf|
|00003bc0| 6f 2e 66 64 43 6f 6d 6d | 65 6e 74 2e 20 54 68 65 |o.fdComm|ent. The|
|00003bd0| 20 63 6f 6d 6d 65 6e 74 | 20 49 44 20 66 6f 72 20 | comment| ID for |
|00003be0| 61 20 64 69 72 65 63 74 | 6f 72 79 20 69 73 20 6b |a direct|ory is k|
|00003bf0| 65 70 74 20 69 6e 20 69 | 6f 44 72 46 6e 64 72 49 |ept in i|oDrFndrI|
|00003c00| 6e 66 6f 2e 66 72 43 6f | 6d 6d 65 6e 74 2e 0d 27 |nfo.frCo|mment..'|
|00003c10| 46 4f 42 4a 27 3a 20 09 | 54 68 69 73 20 72 65 73 |FOBJ': .|This res|
|00003c20| 6f 75 72 63 65 20 74 79 | 70 65 20 63 6f 6e 74 61 |ource ty|pe conta|
|00003c30| 69 6e 73 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 66 |ins all |of the f|
|00003c40| 6f 6c 64 65 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |older in|formatio|
|00003c50| 6e 20 66 6f 72 20 61 6e | 20 4d 46 53 20 76 6f 6c |n for an| MFS vol|
|00003c60| 75 6d 65 2e 20 54 68 65 | 20 66 6f 72 6d 61 74 20 |ume. The| format |
|00003c70| 6f 66 20 74 68 69 73 20 | 72 65 73 6f 75 72 63 65 |of this |resource|
|00003c80| 20 69 73 20 6e 6f 74 20 | 61 76 61 69 6c 61 62 6c | is not |availabl|
|00003c90| 65 2e 20 54 68 69 73 20 | 69 73 20 6f 6e 6c 79 20 |e. This |is only |
|00003ca0| 69 6e 20 61 6e 20 4d 46 | 53 20 76 6f 6c 75 6d 65 |in an MF|S volume|
|00003cb0| d5 73 20 44 65 73 6b 74 | 6f 70 20 66 69 6c 65 2e |.s Deskt|op file.|
|00003cc0| 0d 27 49 43 4e 23 27 3a | 09 54 68 69 73 20 72 65 |.'ICN#':|.This re|
|00003cd0| 73 6f 75 72 63 65 20 74 | 79 70 65 20 63 6f 6e 74 |source t|ype cont|
|00003ce0| 61 69 6e 73 20 61 20 63 | 6f 70 79 20 6f 66 20 61 |ains a c|opy of a|
|00003cf0| 6c 6c 20 6f 66 20 74 68 | 65 20 27 49 43 4e 23 27 |ll of th|e 'ICN#'|
|00003d00| 20 72 65 73 6f 75 72 63 | 65 73 20 72 65 66 65 72 | resourc|es refer|
|00003d10| 65 6e 63 65 64 20 69 6e | 20 74 68 65 20 62 75 6e |enced in| the bun|
|00003d20| 64 6c 65 73 20 61 6e 64 | 20 61 6e 79 20 6f 74 68 |dles and| any oth|
|00003d30| 65 72 73 20 74 68 61 74 | 20 6d 61 79 20 62 65 20 |ers that| may be |
|00003d40| 70 72 65 73 65 6e 74 2e | 0d 27 53 54 52 20 27 3a |present.|.'STR ':|
|00003d50| 09 54 68 69 73 20 69 73 | 20 61 20 73 74 72 69 6e |.This is| a strin|
|00003d60| 67 20 74 68 61 74 20 69 | 64 65 6e 74 69 66 69 65 |g that i|dentifie|
|00003d70| 73 20 74 68 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |s the ve|rsion of|
|00003d80| 20 74 68 65 20 46 69 6e | 64 65 72 2c 20 62 75 74 | the Fin|der, but|
|00003d90| 20 69 74 20 69 73 6e d5 | 74 20 61 6c 77 61 79 73 | it isn.|t always|
|00003da0| 20 63 6f 72 72 65 63 74 | 2e 0d 43 72 65 61 74 6f | correct|..Creato|
|00003db0| 72 73 3a 09 41 20 72 65 | 73 6f 75 72 63 65 20 77 |rs:.A re|source w|
|00003dc0| 69 74 68 20 61 20 74 79 | 70 65 20 65 71 75 61 6c |ith a ty|pe equal|
|00003dd0| 20 74 6f 20 74 68 65 20 | 63 72 65 61 74 6f 72 20 | to the |creator |
|00003de0| 6f 66 20 65 61 63 68 20 | 61 70 70 6c 69 63 61 74 |of each |applicat|
|00003df0| 69 6f 6e 20 77 69 74 68 | 20 61 20 62 75 6e 64 6c |ion with| a bundl|
|00003e00| 65 20 69 73 20 73 74 6f | 72 65 64 20 69 6e 20 74 |e is sto|red in t|
|00003e10| 68 65 20 44 65 73 6b 74 | 6f 70 20 66 69 6c 65 20 |he Deskt|op file |
|00003e20| 66 6f 72 20 72 65 66 65 | 72 65 6e 63 65 20 70 75 |for refe|rence pu|
|00003e30| 72 70 6f 73 65 73 20 6f | 6e 6c 79 2e 20 54 68 65 |rposes o|nly. The|
|00003e40| 20 64 61 74 61 20 73 74 | 6f 72 65 64 20 69 6e 20 | data st|ored in |
|00003e50| 74 68 65 73 65 20 72 65 | 73 6f 75 72 63 65 73 20 |these re|sources |
|00003e60| 69 73 20 66 6f 72 20 74 | 68 65 20 46 69 6e 64 65 |is for t|he Finde|
|00003e70| 72 d5 73 20 75 73 65 20 | 6f 6e 6c 79 2e 0d 42 65 |r.s use |only..Be|
|00003e80| 20 61 77 61 72 65 20 74 | 68 61 74 20 69 66 20 61 | aware t|hat if a|
|00003e90| 20 72 65 73 6f 75 72 63 | 65 20 69 73 20 63 6f 70 | resourc|e is cop|
|00003ea0| 69 65 64 20 66 72 6f 6d | 20 61 6e 20 61 70 70 6c |ied from| an appl|
|00003eb0| 69 63 61 74 69 6f 6e 20 | 72 65 73 6f 75 72 63 65 |ication |resource|
|00003ec0| 20 66 69 6c 65 20 61 6e | 64 20 74 68 65 72 65 20 | file an|d there |
|00003ed0| 69 73 20 61 6e 20 49 44 | 20 63 6f 6e 66 6c 69 63 |is an ID| conflic|
|00003ee0| 74 2c 20 74 68 65 20 46 | 69 6e 64 65 72 20 77 69 |t, the F|inder wi|
|00003ef0| 6c 6c 20 72 65 6e 75 6d | 62 65 72 20 74 68 65 20 |ll renum|ber the |
|00003f00| 72 65 73 6f 75 72 63 65 | 20 69 6e 20 74 68 65 20 |resource| in the |
|00003f10| 44 65 73 6b 74 6f 70 20 | 66 69 6c 65 2e 0d 46 75 |Desktop |file..Fu|
|00003f20| 72 74 68 65 72 20 52 65 | 66 65 72 65 6e 63 65 3a |rther Re|ference:|
|00003f30| 0d a5 09 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |...Insid|e Macint|
|00003f40| 6f 73 68 2c 20 56 6f 6c | 75 6d 65 20 49 2c 20 54 |osh, Vol|ume I, T|
|00003f50| 68 65 20 46 69 6e 64 65 | 72 20 49 6e 74 65 72 66 |he Finde|r Interf|
|00003f60| 61 63 65 0d 54 42 20 37 | 20 2d 20 45 72 72 6f 72 |ace.TB 7| - Error|
|00003f70| 73 20 52 65 74 75 72 6e | 65 64 20 66 72 6f 6d 20 |s Return|ed from |
|00003f80| 47 65 74 4e 65 77 44 69 | 61 6c 6f 67 0d 54 6f 6f |GetNewDi|alog.Too|
|00003f90| 6c 62 6f 78 09 0d 52 65 | 76 69 73 65 64 20 62 79 |lbox..Re|vised by|
|00003fa0| 3a 09 09 4d 61 72 63 68 | 20 31 39 38 38 0d 57 72 |:..March| 1988.Wr|
|00003fb0| 69 74 74 65 6e 20 62 79 | 3a 09 52 75 73 73 20 44 |itten by|:.Russ D|
|00003fc0| 61 6e 69 65 6c 73 09 20 | 41 70 72 69 6c 20 31 39 |aniels. |April 19|
|00003fd0| 38 35 0d 57 68 65 6e 20 | 63 61 6c 6c 69 6e 67 20 |85.When |calling |
|00003fe0| 47 65 74 4e 65 77 44 69 | 61 6c 6f 67 20 74 6f 20 |GetNewDi|alog to |
|00003ff0| 72 65 74 72 69 65 76 65 | 20 61 20 64 69 61 6c 6f |retrieve| a dialo|
|00004000| 67 20 74 65 6d 70 6c 61 | 74 65 20 66 72 6f 6d 20 |g templa|te from |
|00004010| 61 20 70 72 65 76 69 6f | 75 73 6c 79 20 6f 70 65 |a previo|usly ope|
|00004020| 6e 65 64 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |ned reso|urce fil|
|00004030| 65 2c 20 68 6f 77 20 61 | 72 65 20 65 72 72 6f 72 |e, how a|re error|
|00004040| 20 63 6f 6e 64 69 74 69 | 6f 6e 73 20 69 6e 64 69 | conditi|ons indi|
|00004050| 63 61 74 65 64 20 74 6f | 20 74 68 65 20 63 61 6c |cated to| the cal|
|00004060| 6c 65 72 3f 0d 55 6e 66 | 6f 72 74 75 6e 61 74 65 |ler?.Unf|ortunate|
|00004070| 6c 79 2c 20 74 68 65 79 | 20 61 72 65 6e d5 74 2e |ly, they| aren.t.|
|00004080| 20 54 68 65 20 44 69 61 | 6c 6f 67 20 4d 61 6e 61 | The Dia|log Mana|
|00004090| 67 65 72 20 63 61 6c 6c | 73 20 47 65 74 52 65 73 |ger call|s GetRes|
|000040a0| 6f 75 72 63 65 20 61 6e | 64 20 61 73 73 75 6d 65 |ource an|d assume|
|000040b0| 73 20 74 68 65 20 72 65 | 74 75 72 6e 65 64 20 76 |s the re|turned v|
|000040c0| 61 6c 75 65 20 69 73 20 | 67 6f 6f 64 2e 20 53 69 |alue is |good. Si|
|000040d0| 6e 63 65 20 74 68 65 20 | 44 69 61 6c 6f 67 20 4d |nce the |Dialog M|
|000040e0| 61 6e 61 67 65 72 20 64 | 6f 65 73 6e d5 74 20 63 |anager d|oesn.t c|
|000040f0| 68 65 63 6b 2c 20 79 6f | 75 20 68 61 76 65 20 74 |heck, yo|u have t|
|00004100| 77 6f 20 63 68 6f 69 63 | 65 73 2e 20 59 6f 75 72 |wo choic|es. Your|
|00004110| 20 66 69 72 73 74 20 63 | 68 6f 69 63 65 20 69 73 | first c|hoice is|
|00004120| 20 74 6f 20 63 61 6c 6c | 20 47 65 74 52 65 73 6f | to call| GetReso|
|00004130| 75 72 63 65 20 66 6f 72 | 20 74 68 65 20 64 69 61 |urce for| the dia|
|00004140| 6c 6f 67 20 74 65 6d 70 | 6c 61 74 65 2c 20 69 74 |log temp|late, it|
|00004150| 65 6d 20 6c 69 73 74 2c | 20 61 6e 64 20 61 6e 79 |em list,| and any|
|00004160| 20 72 65 73 6f 75 72 63 | 65 73 20 6e 65 65 64 65 | resourc|es neede|
|00004170| 64 20 62 79 20 69 74 65 | 6d 73 20 69 6e 20 74 68 |d by ite|ms in th|
|00004180| 65 20 69 74 65 6d 20 6c | 69 73 74 20 79 6f 75 72 |e item l|ist your|
|00004190| 73 65 6c 66 2e 20 42 75 | 74 20 77 68 61 74 20 64 |self. Bu|t what d|
|000041a0| 6f 20 79 6f 75 20 64 6f | 20 77 68 65 6e 20 79 6f |o you do| when yo|
|000041b0| 75 20 66 69 6e 64 20 74 | 68 65 20 72 65 73 6f 75 |u find t|he resou|
|000041c0| 72 63 65 73 20 61 72 65 | 6e d5 74 20 74 68 65 72 |rces are|n.t ther|
|000041d0| 65 3f 20 54 72 79 20 74 | 6f 20 64 69 73 70 6c 61 |e? Try t|o displa|
|000041e0| 79 20 61 6e 20 61 6c 65 | 72 74 20 74 65 6c 6c 69 |y an ale|rt telli|
|000041f0| 6e 67 20 74 68 65 20 75 | 73 65 72 20 79 6f 75 72 |ng the u|ser your|
|00004200| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 68 61 73 | applica|tion has|
|00004210| 20 62 65 65 6e 20 6d 6f | 72 74 61 6c 6c 79 20 77 | been mo|rtally w|
|00004220| 6f 75 6e 64 65 64 3f 20 | 57 68 61 74 20 69 66 20 |ounded? |What if |
|00004230| 72 65 73 6f 75 72 63 65 | 73 20 6e 65 65 64 65 64 |resource|s needed|
|00004240| 20 66 6f 72 20 74 68 65 | 20 61 6c 65 72 74 20 61 | for the| alert a|
|00004250| 72 65 6e d5 74 20 61 76 | 61 69 6c 61 62 6c 65 3f |ren.t av|ailable?|
|00004260| 0d 54 68 65 20 73 65 63 | 6f 6e 64 2c 20 73 69 6d |.The sec|ond, sim|
|00004270| 70 6c 65 72 20 61 6c 74 | 65 72 6e 61 74 69 76 65 |pler alt|ernative|
|00004280| 20 69 73 20 74 6f 20 61 | 73 73 75 72 65 20 74 68 | is to a|ssure th|
|00004290| 61 74 20 74 68 65 20 64 | 69 61 6c 6f 67 20 74 65 |at the d|ialog te|
|000042a0| 6d 70 6c 61 74 65 20 61 | 6e 64 20 6f 74 68 65 72 |mplate a|nd other|
|000042b0| 20 72 65 73 6f 75 72 63 | 65 73 20 77 69 6c 6c 20 | resourc|es will |
|000042c0| 62 65 20 61 76 61 69 6c | 61 62 6c 65 20 77 68 65 |be avail|able whe|
|000042d0| 6e 20 79 6f 75 20 62 75 | 69 6c 64 20 79 6f 75 72 |n you bu|ild your|
|000042e0| 20 70 72 6f 64 75 63 74 | 2e 20 54 68 69 73 20 69 | product|. This i|
|000042f0| 73 20 72 65 61 6c 6c 79 | 20 61 6e 20 61 64 65 71 |s really| an adeq|
|00004300| 75 61 74 65 20 73 6f 6c | 75 74 69 6f 6e 3a 20 49 |uate sol|ution: I|
|00004310| 66 20 73 6f 6d 65 62 6f | 64 79 20 75 73 65 73 20 |f somebo|dy uses |
|00004320| 61 20 72 65 73 6f 75 72 | 63 65 20 65 64 69 74 6f |a resour|ce edito|
|00004330| 72 20 74 6f 20 72 65 6d | 6f 76 65 20 79 6f 75 72 |r to rem|ove your|
|00004340| 20 64 69 61 6c 6f 67 20 | 74 65 6d 70 6c 61 74 65 | dialog |template|
|00004350| 2c 20 79 6f 75 20 63 61 | 6e 20 68 61 72 64 6c 79 |, you ca|n hardly|
|00004360| 20 62 65 20 62 6c 61 6d | 65 64 20 66 6f 72 20 69 | be blam|ed for i|
|00004370| 74 73 20 6e 6f 74 20 65 | 78 65 63 75 74 69 6e 67 |ts not e|xecuting|
|00004380| 20 70 72 6f 70 65 72 6c | 79 2e 20 0d 41 20 67 6f | properl|y. .A go|
|00004390| 6f 64 20 64 65 62 75 67 | 67 69 6e 67 20 74 65 63 |od debug|ging tec|
|000043a0| 68 6e 69 71 75 65 20 74 | 6f 20 63 61 74 63 68 20 |hnique t|o catch |
|000043b0| 74 68 69 73 20 73 6f 72 | 74 20 6f 66 20 70 72 6f |this sor|t of pro|
|000043c0| 62 6c 65 6d 20 69 73 20 | 74 6f 20 70 75 74 20 74 |blem is |to put t|
|000043d0| 68 65 20 76 61 6c 75 65 | 20 24 35 30 46 46 43 30 |he value| $50FFC0|
|000043e0| 30 31 20 61 74 20 61 62 | 73 6f 6c 75 74 65 20 6d |01 at ab|solute m|
|000043f0| 65 6d 6f 72 79 20 6c 6f | 63 61 74 69 6f 6e 20 30 |emory lo|cation 0|
|00004400| 20 28 74 68 65 20 66 69 | 72 73 74 20 6c 6f 6e 67 | (the fi|rst long|
|00004410| 20 77 6f 72 64 20 6f 66 | 20 6d 65 6d 6f 72 79 29 | word of| memory)|
|00004420| 2e 20 49 66 20 79 6f 75 | 20 64 6f 20 74 68 61 74 |. If you| do that|
|00004430| 2c 20 77 68 65 6e 20 74 | 68 65 20 44 69 61 6c 6f |, when t|he Dialo|
|00004440| 67 20 4d 61 6e 61 67 65 | 72 20 74 72 69 65 73 20 |g Manage|r tries |
|00004450| 74 6f 20 64 65 72 65 66 | 65 72 65 6e 63 65 20 74 |to deref|erence t|
|00004460| 68 65 20 6e 69 6c 20 68 | 61 6e 64 6c 65 20 72 65 |he nil h|andle re|
|00004470| 74 75 72 6e 65 64 20 62 | 79 20 74 68 65 20 52 65 |turned b|y the Re|
|00004480| 73 6f 75 72 63 65 20 4d | 61 6e 61 67 65 72 2c 20 |source M|anager, |
|00004490| 79 6f 75 d5 6c 6c 20 67 | 65 74 20 61 6e 20 61 64 |you.ll g|et an ad|
|000044a0| 64 72 65 73 73 20 65 72 | 72 6f 72 20 6f 72 20 62 |dress er|ror or b|
|000044b0| 75 73 20 65 72 72 6f 72 | 20 77 69 74 68 20 73 6f |us error| with so|
|000044c0| 6d 65 20 72 65 67 69 73 | 74 65 72 20 63 6f 6e 74 |me regis|ter cont|
|000044d0| 61 69 6e 69 6e 67 20 24 | 35 30 46 46 43 30 30 31 |aining $|50FFC001|
|000044e0| 2e 20 49 66 20 79 6f 75 | 20 6c 69 73 74 20 74 68 |. If you| list th|
|000044f0| 65 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 61 |e instru|ctions a|
|00004500| 72 6f 75 6e 64 20 74 68 | 65 20 70 72 6f 67 72 61 |round th|e progra|
|00004510| 6d 20 63 6f 75 6e 74 65 | 72 2c 20 79 6f 75 d5 6c |m counte|r, you.l|
|00004520| 6c 20 6f 66 74 65 6e 20 | 73 65 65 20 73 6f 6d 65 |l often |see some|
|00004530| 74 68 69 6e 67 20 6c 69 | 6b 65 3a 0d 09 09 4d 4f |thing li|ke:...MO|
|00004540| 56 45 2e 4c 20 28 41 32 | 29 2c 41 31 20 20 20 20 |VE.L (A2|),A1 |
|00004550| 20 20 20 3b 20 69 6e 20 | 65 66 66 65 63 74 20 28 | ; in |effect (|
|00004560| 30 29 2c 41 31 0d 09 09 | 4d 4f 56 45 2e 4c 20 28 |0),A1...|MOVE.L (|
|00004570| 41 31 29 2c 41 31 20 20 | 20 20 20 20 20 3b 20 74 |A1),A1 | ; t|
|00004580| 68 65 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 20 |he error| occurs |
|00004590| 68 65 72 65 0d 47 65 74 | 4e 65 77 57 69 6e 64 6f |here.Get|NewWindo|
|000045a0| 77 20 61 6e 64 20 6d 6f | 73 74 20 6f 66 20 74 68 |w and mo|st of th|
|000045b0| 65 20 6f 74 68 65 72 20 | d2 47 65 74 53 6f 6d 65 |e other |.GetSome|
|000045c0| 74 68 69 6e 67 d3 20 63 | 61 6c 6c 73 20 77 69 6c |thing. c|alls wil|
|000045d0| 6c 20 72 65 74 75 72 6e | 20 6e 69 6c 20 69 66 20 |l return| nil if |
|000045e0| 74 68 65 20 d2 73 6f 6d | 65 74 68 69 6e 67 d3 20 |the .som|ething. |
|000045f0| 69 73 20 6e 6f 74 20 66 | 6f 75 6e 64 2e 0d 46 75 |is not f|ound..Fu|
|00004600| 72 74 68 65 72 20 52 65 | 66 65 72 65 6e 63 65 3a |rther Re|ference:|
|00004610| 0d a5 09 54 68 65 20 44 | 69 61 6c 6f 67 20 4d 61 |...The D|ialog Ma|
|00004620| 6e 61 67 65 72 0d 54 42 | 20 38 20 2d 20 46 69 6e |nager.TB| 8 - Fin|
|00004630| 64 44 49 74 65 6d 0d 54 | 6f 6f 6c 62 6f 78 09 0d |dDItem.T|oolbox..|
|00004640| 52 65 76 69 73 65 64 20 | 62 79 3a 09 09 4d 61 72 |Revised |by:..Mar|
|00004650| 63 68 20 31 39 38 38 0d | 57 72 69 74 74 65 6e 20 |ch 1988.|Written |
|00004660| 62 79 3a 09 52 69 63 6b | 20 42 6c 61 69 72 09 4d |by:.Rick| Blair.M|
|00004670| 61 72 63 68 20 31 39 38 | 37 0d 46 69 6e 64 44 49 |arch 198|7.FindDI|
|00004680| 74 65 6d 20 69 73 20 61 | 20 70 6f 74 65 6e 74 69 |tem is a| potenti|
|00004690| 61 6c 6c 79 20 75 73 65 | 66 75 6c 20 63 61 6c 6c |ally use|ful call|
|000046a0| 20 77 68 69 63 68 20 72 | 65 74 75 72 6e 73 20 74 | which r|eturns t|
|000046b0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 61 20 64 |he numbe|r of a d|
|000046c0| 69 61 6c 6f 67 20 69 74 | 65 6d 20 67 69 76 65 6e |ialog it|em given|
|000046d0| 20 61 20 70 6f 69 6e 74 | 20 69 6e 20 6c 6f 63 61 | a point| in loca|
|000046e0| 6c 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 61 6e |l coordi|nates an|
|000046f0| 64 20 61 20 64 69 61 6c | 6f 67 20 68 61 6e 64 6c |d a dial|og handl|
|00004700| 65 2e 20 49 74 20 72 65 | 74 75 72 6e 73 20 61 6e |e. It re|turns an|
|00004710| 20 69 74 65 6d 20 6e 75 | 6d 62 65 72 20 6f 66 20 | item nu|mber of |
|00004720| d0 31 20 69 66 20 6e 6f | 20 69 74 65 6d d5 73 20 |.1 if no| item.s |
|00004730| 72 65 63 74 61 6e 67 6c | 65 20 6f 76 65 72 6c 61 |rectangl|e overla|
|00004740| 70 73 20 74 68 65 20 70 | 6f 69 6e 74 2e 20 54 68 |ps the p|oint. Th|
|00004750| 69 73 20 69 73 20 61 6c | 6c 20 77 65 6c 6c 20 61 |is is al|l well a|
|00004760| 6e 64 20 67 6f 6f 64 2c | 20 65 78 63 65 70 74 20 |nd good,| except |
|00004770| 79 6f 75 20 64 6f 6e d5 | 74 20 67 65 74 20 62 61 |you don.|t get ba|
|00004780| 63 6b 20 71 75 69 74 65 | 20 77 68 61 74 20 79 6f |ck quite| what yo|
|00004790| 75 20 77 6f 75 6c 64 20 | 65 78 70 65 63 74 2e 0d |u would |expect..|
|000047a0| 54 68 65 20 69 74 65 6d | 20 6e 75 6d 62 65 72 20 |The item| number |
|000047b0| 72 65 74 75 72 6e 65 64 | 20 69 73 20 7a 65 72 6f |returned| is zero|
|000047c0| 2d 62 61 73 65 64 2c 20 | 73 6f 20 79 6f 75 20 68 |-based, |so you h|
|000047d0| 61 76 65 20 74 6f 20 61 | 64 64 20 6f 6e 65 20 74 |ave to a|dd one t|
|000047e0| 6f 20 74 68 65 20 72 65 | 73 75 6c 74 3a 0d 09 74 |o the re|sult:..t|
|000047f0| 68 65 69 74 65 6d 20 3a | 3d 20 46 69 6e 64 44 49 |heitem :|= FindDI|
|00004800| 74 65 6d 28 74 68 65 44 | 69 61 6c 6f 67 2c 20 74 |tem(theD|ialog, t|
|00004810| 68 65 50 6f 69 6e 74 29 | 20 2b 20 31 3b 0d 46 75 |hePoint)| + 1;.Fu|
|00004820| 72 74 68 65 72 20 52 65 | 66 65 72 65 6e 63 65 3a |rther Re|ference:|
|00004830| 0d a5 09 54 68 65 20 44 | 69 61 6c 6f 67 20 4d 61 |...The D|ialog Ma|
|00004840| 6e 61 67 65 72 0d 54 42 | 20 39 20 2d 20 46 69 6e |nager.TB| 9 - Fin|
|00004850| 64 65 72 20 46 6c 61 67 | 73 0d 54 6f 6f 6c 62 6f |der Flag|s.Toolbo|
|00004860| 78 09 0d 52 65 76 69 73 | 65 64 20 62 79 3a 09 4a |x..Revis|ed by:.J|
|00004870| 69 6d 20 46 72 69 65 64 | 6c 61 6e 64 65 72 09 4d |im Fried|lander.M|
|00004880| 61 72 63 68 20 31 39 38 | 38 0d 57 72 69 74 74 65 |arch 198|8.Writte|
|00004890| 6e 20 62 79 3a 09 4a 69 | 6d 20 46 72 69 65 64 6c |n by:.Ji|m Friedl|
|000048a0| 61 6e 64 65 72 09 4a 75 | 6e 65 20 31 39 38 36 0d |ander.Ju|ne 1986.|
|000048b0| 54 68 69 73 20 72 65 76 | 69 73 69 6f 6e 20 63 6f |This rev|ision co|
|000048c0| 72 72 65 63 74 73 20 74 | 68 65 20 6d 65 61 6e 69 |rrects t|he meani|
|000048d0| 6e 67 73 20 6f 66 20 62 | 69 74 73 20 36 20 61 6e |ngs of b|its 6 an|
|000048e0| 64 20 37 2c 20 77 68 69 | 63 68 20 77 65 72 65 20 |d 7, whi|ch were |
|000048f0| 69 6e 74 65 72 63 68 61 | 6e 67 65 64 20 69 6e 20 |intercha|nged in |
|00004900| 74 68 65 20 6f 6c 64 65 | 72 20 76 65 72 73 69 6f |the olde|r versio|
|00004910| 6e 20 6f 66 20 74 68 69 | 73 20 74 65 63 68 6e 69 |n of thi|s techni|
|00004920| 63 61 6c 20 6e 6f 74 65 | 2e 20 52 65 73 45 64 69 |cal note|. ResEdi|
|00004930| 74 20 75 73 65 73 20 74 | 68 65 73 65 20 62 69 74 |t uses t|hese bit|
|00004940| 73 20 69 6e 63 6f 72 72 | 65 63 74 6c 79 20 69 6e |s incorr|ectly in|
|00004950| 20 76 65 72 73 69 6f 6e | 73 20 6f 6c 64 65 72 20 | version|s older |
|00004960| 74 68 61 6e 20 31 2e 32 | 2e 0d 54 68 65 20 46 69 |than 1.2|..The Fi|
|00004970| 6e 64 65 72 20 6b 65 65 | 70 73 20 61 6e 64 20 75 |nder kee|ps and u|
|00004980| 73 65 73 20 61 20 73 65 | 72 69 65 73 20 6f 66 20 |ses a se|ries of |
|00004990| 66 69 6c 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |file inf|ormation|
|000049a0| 20 66 6c 61 67 73 20 66 | 6f 72 20 65 61 63 68 20 | flags f|or each |
|000049b0| 66 69 6c 65 2e 20 54 68 | 65 73 65 20 66 6c 61 67 |file. Th|ese flag|
|000049c0| 73 20 61 72 65 20 6c 6f | 63 61 74 65 64 20 69 6e |s are lo|cated in|
|000049d0| 20 74 68 65 20 66 64 46 | 6c 61 67 73 20 66 69 65 | the fdF|lags fie|
|000049e0| 6c 64 20 28 61 20 77 6f | 72 64 20 61 74 20 6f 66 |ld (a wo|rd at of|
|000049f0| 66 73 65 74 20 24 32 38 | 20 69 6e 74 6f 20 61 6e |fset $28| into an|
|00004a00| 20 48 50 61 72 61 6d 42 | 6c 6f 63 6b 52 65 63 29 | HParamB|lockRec)|
|00004a10| 20 6f 66 20 74 68 65 20 | 69 6f 46 6c 46 6e 64 72 | of the |ioFlFndr|
|00004a20| 49 6e 66 6f 20 72 65 63 | 6f 72 64 20 6f 66 20 61 |Info rec|ord of a|
|00004a30| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|00004a40| 2e 20 54 68 65 79 20 6d | 61 79 20 63 68 61 6e 67 |. They m|ay chang|
|00004a50| 65 20 77 69 74 68 20 6e | 65 77 65 72 20 76 65 72 |e with n|ewer ver|
|00004a60| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 46 69 6e |sions of| the Fin|
|00004a70| 64 65 72 2e 20 46 69 6e | 64 65 72 73 20 35 2e 34 |der. Fin|ders 5.4|
|00004a80| 20 61 6e 64 20 6e 65 77 | 65 72 20 61 73 73 69 67 | and new|er assig|
|00004a90| 6e 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |n the fo|llowing |
|00004aa0| 6d 65 61 6e 69 6e 67 73 | 20 74 6f 20 74 68 65 20 |meanings| to the |
|00004ab0| 66 6c 61 67 73 3a 0d 42 | 69 74 09 4d 65 61 6e 69 |flags:.B|it.Meani|
|00004ac0| 6e 67 0d 30 09 53 65 74 | 20 69 66 20 66 69 6c 65 |ng.0.Set| if file|
|00004ad0| 2f 66 6f 6c 64 65 72 20 | 69 73 20 6f 6e 20 74 68 |/folder |is on th|
|00004ae0| 65 20 64 65 73 6b 74 6f | 70 20 28 46 69 6e 64 65 |e deskto|p (Finde|
|00004af0| 72 20 35 2e 30 20 61 6e | 64 20 6c 61 74 65 72 29 |r 5.0 an|d later)|
|00004b00| 0d 31 09 62 46 4f 77 6e | 41 70 70 6c 20 20 28 75 |.1.bFOwn|Appl (u|
|00004b10| 73 65 64 20 69 6e 74 65 | 72 6e 61 6c 6c 79 29 0d |sed inte|rnally).|
|00004b20| 32 09 72 65 73 65 72 76 | 65 64 20 20 28 63 75 72 |2.reserv|ed (cur|
|00004b30| 72 65 6e 74 6c 79 20 75 | 6e 75 73 65 64 29 0d 33 |rently u|nused).3|
|00004b40| 09 72 65 73 65 72 76 65 | 64 20 28 63 75 72 72 65 |.reserve|d (curre|
|00004b50| 6e 74 6c 79 20 75 6e 75 | 73 65 64 29 0d 34 09 62 |ntly unu|sed).4.b|
|00004b60| 46 4e 65 76 65 72 20 28 | 6e 65 76 65 72 20 53 77 |FNever (|never Sw|
|00004b70| 69 74 63 68 4c 61 75 6e | 63 68 29 20 28 6e 6f 74 |itchLaun|ch) (not|
|00004b80| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 29 0d 35 09 | impleme|nted).5.|
|00004b90| 62 46 41 6c 77 61 79 73 | 20 28 61 6c 77 61 79 73 |bFAlways| (always|
|00004ba0| 20 53 77 69 74 63 68 4c | 61 75 6e 63 68 29 20 0d | SwitchL|aunch) .|
|00004bb0| 36 09 53 65 74 20 69 66 | 20 66 69 6c 65 20 69 73 |6.Set if| file is|
|00004bc0| 20 61 20 73 68 61 72 65 | 61 62 6c 65 20 61 70 70 | a share|able app|
|00004bd0| 6c 69 63 61 74 69 6f 6e | 0d 37 09 72 65 73 65 72 |lication|.7.reser|
|00004be0| 76 65 64 20 28 75 73 65 | 64 20 62 79 20 53 79 73 |ved (use|d by Sys|
|00004bf0| 74 65 6d 29 0d 38 09 49 | 6e 69 74 65 64 20 28 73 |tem).8.I|nited (s|
|00004c00| 65 65 6e 20 62 79 20 46 | 69 6e 64 65 72 29 0d 39 |een by F|inder).9|
|00004c10| 09 43 68 61 6e 67 65 64 | 20 28 75 73 65 64 20 69 |.Changed| (used i|
|00004c20| 6e 74 65 72 6e 61 6c 6c | 79 29 0d 31 30 09 42 75 |nternall|y).10.Bu|
|00004c30| 73 79 20 28 63 6f 70 69 | 65 64 20 66 72 6f 6d 20 |sy (copi|ed from |
|00004c40| 46 69 6c 65 20 53 79 73 | 74 65 6d 20 62 75 73 79 |File Sys|tem busy|
|00004c50| 20 62 69 74 29 0d 31 31 | 09 4e 6f 43 6f 70 79 20 | bit).11|.NoCopy |
|00004c60| 28 6e 6f 74 20 75 73 65 | 64 20 69 6e 20 35 2e 30 |(not use|d in 5.0|
|00004c70| 20 61 6e 64 20 6c 61 74 | 65 72 2c 20 66 6f 72 6d | and lat|er, form|
|00004c80| 65 72 6c 79 20 63 61 6c | 6c 65 64 20 09 42 4f 5a |erly cal|led .BOZ|
|00004c90| 4f 29 0d 31 32 09 53 79 | 73 74 65 6d 20 28 73 65 |O).12.Sy|stem (se|
|00004ca0| 74 20 69 66 20 66 69 6c | 65 20 69 73 20 61 20 73 |t if fil|e is a s|
|00004cb0| 79 73 74 65 6d 20 66 69 | 6c 65 29 0d 31 33 09 48 |ystem fi|le).13.H|
|00004cc0| 61 73 42 75 6e 64 6c 65 | 0d 31 34 09 49 6e 76 69 |asBundle|.14.Invi|
|00004cd0| 73 69 62 6c 65 0d 31 35 | 09 4c 6f 63 6b 65 64 0d |sible.15|.Locked.|
|00004ce0| 46 75 72 74 68 65 72 20 | 52 65 66 65 72 65 6e 63 |Further |Referenc|
|00004cf0| 65 3a 0d a5 09 49 6e 73 | 69 64 65 20 4d 61 63 69 |e:...Ins|ide Maci|
|00004d00| 6e 74 6f 73 68 2c 20 56 | 6f 6c 75 6d 65 20 49 56 |ntosh, V|olume IV|
|00004d10| 2c 20 54 68 65 20 46 69 | 6c 65 20 4d 61 6e 61 67 |, The Fi|le Manag|
|00004d20| 65 72 0d 54 42 20 31 30 | 20 2d 20 46 69 6e 64 65 |er.TB 10| - Finde|
|00004d30| 72 73 20 61 6e 64 20 46 | 6f 72 65 69 67 6e 20 44 |rs and F|oreign D|
|00004d40| 72 69 76 65 73 0d 54 6f | 6f 6c 62 6f 78 09 0d 52 |rives.To|olbox..R|
|00004d50| 65 76 69 73 65 64 20 62 | 79 3a 09 09 4d 61 72 63 |evised b|y:..Marc|
|00004d60| 68 20 31 39 38 38 0d 57 | 72 69 74 74 65 6e 20 62 |h 1988.W|ritten b|
|00004d70| 79 3a 09 47 69 6e 67 65 | 72 20 4a 65 6e 69 67 61 |y:.Ginge|r Jeniga|
|00004d80| 6e 09 4d 61 79 20 31 39 | 38 34 0d 54 68 69 73 20 |n.May 19|84.This |
|00004d90| 74 65 63 68 6e 69 63 61 | 6c 20 6e 6f 74 65 20 64 |technica|l note d|
|00004da0| 65 73 63 72 69 62 65 73 | 20 74 68 65 20 64 69 66 |escribes| the dif|
|00004db0| 66 65 72 65 6e 63 65 73 | 20 69 6e 20 74 68 65 20 |ferences| in the |
|00004dc0| 77 61 79 20 74 68 65 20 | 31 2e 31 67 2c 20 34 2e |way the |1.1g, 4.|
|00004dd0| 31 2c 20 35 2e 30 20 61 | 6e 64 20 6e 65 77 65 72 |1, 5.0 a|nd newer|
|00004de0| 20 46 69 6e 64 65 72 73 | 20 63 6f 6d 6d 75 6e 69 | Finders| communi|
|00004df0| 63 61 74 65 20 77 69 74 | 68 20 66 6f 72 65 69 67 |cate wit|h foreig|
|00004e00| 6e 20 28 6e 6f 6e 2d 53 | 6f 6e 79 29 20 64 69 73 |n (non-S|ony) dis|
|00004e10| 6b 20 64 72 69 76 65 73 | 2e 0d 49 64 65 6e 74 69 |k drives|..Identi|
|00004e20| 66 79 69 6e 67 20 46 6f | 72 65 69 67 6e 20 44 72 |fying Fo|reign Dr|
|00004e30| 69 76 65 73 0d 4e 6f 6e | 2d 53 6f 6e 79 20 64 69 |ives.Non|-Sony di|
|00004e40| 73 6b 20 64 72 69 76 65 | 73 20 63 61 6e 20 73 65 |sk drive|s can se|
|00004e50| 6e 64 20 61 6e 20 69 63 | 6f 6e 20 61 6e 64 20 61 |nd an ic|on and a|
|00004e60| 20 64 65 73 63 72 69 70 | 74 69 76 65 20 73 74 72 | descrip|tive str|
|00004e70| 69 6e 67 20 74 6f 20 74 | 68 65 20 46 69 6e 64 65 |ing to t|he Finde|
|00004e80| 72 3b 20 74 68 69 73 20 | 69 63 6f 6e 20 69 73 20 |r; this |icon is |
|00004e90| 75 73 65 64 20 6f 6e 20 | 74 68 65 20 64 65 73 6b |used on |the desk|
|00004ea0| 74 6f 70 20 74 6f 20 72 | 65 70 72 65 73 65 6e 74 |top to r|epresent|
|00004eb0| 20 74 68 65 20 64 72 69 | 76 65 2e 20 54 68 65 20 | the dri|ve. The |
|00004ec0| 73 74 72 69 6e 67 20 69 | 73 20 64 69 73 70 6c 61 |string i|s displa|
|00004ed0| 79 65 64 20 69 6e 20 74 | 68 65 20 d2 47 65 74 20 |yed in t|he .Get |
|00004ee0| 49 6e 66 6f d3 20 62 6f | 78 20 66 6f 72 20 61 6e |Info. bo|x for an|
|00004ef0| 79 20 6f 62 6a 65 63 74 | 20 62 65 6c 6f 6e 67 69 |y object| belongi|
|00004f00| 6e 67 20 74 6f 20 74 68 | 61 74 20 64 69 73 6b 2e |ng to th|at disk.|
|00004f10| 20 57 68 65 6e 20 74 68 | 65 20 46 69 6e 64 65 72 | When th|e Finder|
|00004f20| 20 6e 6f 74 69 63 65 73 | 20 61 20 6e 6f 6e 2d 53 | notices| a non-S|
|00004f30| 6f 6e 79 20 64 72 69 76 | 65 20 69 6e 20 74 68 65 |ony driv|e in the|
|00004f40| 20 56 43 42 20 71 75 65 | 75 65 2c 20 69 74 20 77 | VCB que|ue, it w|
|00004f50| 69 6c 6c 20 69 73 73 75 | 65 20 31 20 6f 72 20 32 |ill issu|e 1 or 2|
|00004f60| 20 63 6f 6e 74 72 6f 6c | 20 63 61 6c 6c 73 20 74 | control| calls t|
|00004f70| 6f 20 74 68 65 20 64 69 | 73 6b 20 64 72 69 76 65 |o the di|sk drive|
|00004f80| 72 20 74 6f 20 67 65 74 | 20 74 68 65 20 69 63 6f |r to get| the ico|
|00004f90| 6e 20 61 6e 64 20 73 74 | 72 69 6e 67 2e 0d 46 69 |n and st|ring..Fi|
|00004fa0| 6e 64 65 72 20 31 2e 31 | 67 20 69 73 73 75 65 73 |nder 1.1|g issues|
|00004fb0| 20 6f 6e 65 20 63 6f 6e | 74 72 6f 6c 20 63 61 6c | one con|trol cal|
|00004fc0| 6c 20 74 6f 20 74 68 65 | 20 64 72 69 76 65 72 20 |l to the| driver |
|00004fd0| 77 69 74 68 20 63 73 43 | 6f 64 65 20 3d 20 32 30 |with csC|ode = 20|
|00004fe0| 20 61 6e 64 20 74 68 65 | 20 64 72 69 76 65 72 20 | and the| driver |
|00004ff0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 69 63 6f 6e |returns |the icon|
|00005000| 20 49 44 20 69 6e 20 63 | 73 50 61 72 61 6d 2e 20 | ID in c|sParam. |
|00005010| 54 68 69 73 20 6d 65 74 | 68 6f 64 20 68 61 73 20 |This met|hod has |
|00005020| 70 72 6f 62 6c 65 6d 73 | 20 62 65 63 61 75 73 65 |problems| because|
|00005030| 20 74 68 65 20 69 63 6f | 6e 20 49 44 20 69 73 20 | the ico|n ID is |
|00005040| 74 69 65 64 20 74 6f 20 | 61 20 70 61 72 74 69 63 |tied to |a partic|
|00005050| 75 6c 61 72 20 73 79 73 | 74 65 6d 20 66 69 6c 65 |ular sys|tem file|
|00005060| 2e 20 53 6f 2c 20 69 66 | 20 74 68 65 20 46 69 6e |. So, if| the Fin|
|00005070| 64 65 72 20 73 77 69 74 | 63 68 2d 6c 61 75 6e 63 |der swit|ch-launc|
|00005080| 68 65 73 20 74 6f 20 61 | 20 64 69 66 66 65 72 65 |hes to a| differe|
|00005090| 6e 74 20 66 6c 6f 70 70 | 79 2c 20 74 68 65 20 66 |nt flopp|y, the f|
|000050a0| 6f 72 65 69 67 6e 20 64 | 69 73 6b d5 73 20 69 63 |oreign d|isk.s ic|
|000050b0| 6f 6e 20 72 65 76 65 72 | 74 73 20 74 6f 20 74 68 |on rever|ts to th|
|000050c0| 65 20 53 6f 6e 79 d5 73 | 2e 0d 46 69 6e 64 65 72 |e Sony.s|..Finder|
|000050d0| 73 20 34 2e 31 20 61 6e | 64 20 6e 65 77 65 72 20 |s 4.1 an|d newer |
|000050e0| 69 73 73 75 65 20 61 20 | 6e 65 77 65 72 20 63 6f |issue a |newer co|
|000050f0| 6e 74 72 6f 6c 20 63 61 | 6c 6c 20 61 6e 64 2c 20 |ntrol ca|ll and, |
|00005100| 69 66 20 74 68 61 74 20 | 66 61 69 6c 73 2c 20 74 |if that |fails, t|
|00005110| 68 65 79 20 69 73 73 75 | 65 20 74 68 65 20 6f 6c |hey issu|e the ol|
|00005120| 64 20 43 6f 6e 74 72 6f | 6c 20 63 61 6c 6c 2e 20 |d Contro|l call. |
|00005130| 54 68 65 20 6e 65 77 20 | 63 61 6c 6c 20 68 61 73 |The new |call has|
|00005140| 20 63 73 43 6f 64 65 20 | 3d 20 32 31 2c 20 61 6e | csCode |= 21, an|
|00005150| 64 20 74 68 65 20 64 72 | 69 76 65 72 20 73 68 6f |d the dr|iver sho|
|00005160| 75 6c 64 20 72 65 74 75 | 72 6e 20 61 20 70 6f 69 |uld retu|rn a poi|
|00005170| 6e 74 65 72 20 69 6e 20 | 63 73 50 61 72 61 6d 2e |nter in |csParam.|
|00005180| 20 54 68 65 20 70 6f 69 | 6e 74 65 72 20 70 6f 69 | The poi|nter poi|
|00005190| 6e 74 73 20 74 6f 20 61 | 6e 20 27 49 43 4e 23 27 |nts to a|n 'ICN#'|
|000051a0| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 20 31 | followe|d by a 1|
|000051b0| 20 74 6f 20 33 31 20 62 | 79 74 65 20 50 61 73 63 | to 31 b|yte Pasc|
|000051c0| 61 6c 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 |al strin|g contai|
|000051d0| 6e 69 6e 67 20 74 68 65 | 20 64 65 73 63 72 69 70 |ning the| descrip|
|000051e0| 74 6f 72 2e 20 54 68 69 | 73 20 69 6d 70 6c 69 65 |tor. Thi|s implie|
|000051f0| 73 20 74 68 61 74 20 74 | 68 65 20 69 63 6f 6e 20 |s that t|he icon |
|00005200| 61 6e 64 20 74 68 65 20 | 73 74 72 69 6e 67 20 6d |and the |string m|
|00005210| 75 73 74 20 62 65 20 70 | 61 72 74 20 6f 66 20 74 |ust be p|art of t|
|00005220| 68 65 20 64 69 73 6b 20 | 64 72 69 76 65 72 d5 73 |he disk |driver.s|
|00005230| 20 63 6f 64 65 20 62 65 | 63 61 75 73 65 20 6f 6e | code be|cause on|
|00005240| 6c 79 20 74 68 65 20 65 | 78 69 73 74 65 6e 63 65 |ly the e|xistence|
|00005250| 20 6f 66 20 74 68 65 20 | 64 72 69 76 65 72 20 69 | of the |driver i|
|00005260| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 74 68 |ndicates| that th|
|00005270| 65 20 64 69 73 6b 20 69 | 73 20 61 74 74 61 63 68 |e disk i|s attach|
|00005280| 65 64 2e 0d 54 68 69 73 | 20 68 61 73 20 69 6d 70 |ed..This| has imp|
|00005290| 6c 69 63 61 74 69 6f 6e | 73 20 61 62 6f 75 74 20 |lication|s about |
|000052a0| 74 68 65 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |the tran|slation |
|000052b0| 6f 66 20 74 68 65 20 64 | 72 69 76 65 72 20 66 6f |of the d|river fo|
|000052c0| 72 20 6f 76 65 72 73 65 | 61 73 20 6d 61 72 6b 65 |r overse|as marke|
|000052d0| 74 73 2c 20 62 75 74 20 | 74 68 65 20 64 65 73 63 |ts, but |the desc|
|000052e0| 72 69 70 74 6f 72 20 77 | 69 6c 6c 20 75 73 75 61 |riptor w|ill usua|
|000052f0| 6c 6c 79 20 62 65 20 61 | 20 74 72 61 64 65 6d 61 |lly be a| tradema|
|00005300| 72 6b 65 64 20 6e 61 6d | 65 20 77 68 69 63 68 20 |rked nam|e which |
|00005310| 69 73 6e d5 74 20 74 72 | 61 6e 73 6c 61 74 65 64 |isn.t tr|anslated|
|00005320| 2e 20 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 64 |. Howeve|r, the d|
|00005330| 72 69 76 65 72 20 69 6e | 73 74 61 6c 6c 20 70 72 |river in|stall pr|
|00005340| 6f 67 72 61 6d 20 63 6f | 75 6c 64 20 62 65 20 6d |ogram co|uld be m|
|00005350| 61 64 65 20 72 65 73 70 | 6f 6e 73 69 62 6c 65 20 |ade resp|onsible |
|00005360| 66 6f 72 20 69 6e 73 65 | 72 74 69 6e 67 20 74 68 |for inse|rting th|
|00005370| 65 20 74 72 61 6e 73 6c | 61 74 65 64 20 6e 61 6d |e transl|ated nam|
|00005380| 65 20 69 6e 74 6f 20 74 | 68 65 20 64 72 69 76 65 |e into t|he drive|
|00005390| 72 2e 0d 44 72 69 76 65 | 72 73 20 73 68 6f 75 6c |r..Drive|rs shoul|
|000053a0| 64 20 72 65 73 70 6f 6e | 64 20 74 6f 20 62 6f 74 |d respon|d to bot|
|000053b0| 68 20 63 6f 6e 74 72 6f | 6c 20 63 61 6c 6c 73 20 |h contro|l calls |
|000053c0| 69 66 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |if compa|tibility|
|000053d0| 20 77 69 74 68 20 62 6f | 74 68 20 46 69 6e 64 65 | with bo|th Finde|
|000053e0| 72 73 20 69 73 20 64 65 | 73 69 72 65 64 2e 0d 46 |rs is de|sired..F|
|000053f0| 6f 72 6d 61 74 74 69 6e | 67 20 46 6f 72 65 69 67 |ormattin|g Foreig|
|00005400| 6e 20 44 72 69 76 65 73 | 0d 57 68 65 6e 20 74 68 |n Drives|.When th|
|00005410| 65 20 75 73 65 72 20 63 | 68 6f 6f 73 65 73 20 74 |e user c|hooses t|
|00005420| 68 65 20 45 72 61 73 65 | 20 44 69 73 6b 20 6f 70 |he Erase| Disk op|
|00005430| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 46 69 6e 64 |tion in |the Find|
|00005440| 65 72 2c 20 61 20 6e 6f | 6e 2d 53 6f 6e 79 20 64 |er, a no|n-Sony d|
|00005450| 72 69 76 65 72 20 6e 65 | 65 64 73 20 74 6f 20 6b |river ne|eds to k|
|00005460| 6e 6f 77 20 74 68 61 74 | 20 74 68 69 73 20 68 61 |now that| this ha|
|00005470| 73 20 68 61 70 70 65 6e | 65 64 20 73 6f 20 69 74 |s happen|ed so it|
|00005480| 20 63 61 6e 20 66 6f 72 | 6d 61 74 20 74 68 65 20 | can for|mat the |
|00005490| 64 69 73 6b 2e 20 46 69 | 6e 64 65 72 20 34 2e 31 |disk. Fi|nder 4.1|
|000054a0| 20 61 6e 64 20 6e 65 77 | 65 72 20 6e 6f 74 69 66 | and new|er notif|
|000054b0| 79 20 74 68 65 20 64 72 | 69 76 65 72 20 74 68 61 |y the dr|iver tha|
|000054c0| 74 20 74 68 65 20 64 72 | 69 76 65 20 6e 65 65 64 |t the dr|ive need|
|000054d0| 73 20 74 6f 20 62 65 20 | 66 6f 72 6d 61 74 74 65 |s to be |formatte|
|000054e0| 64 20 61 6e 64 20 76 65 | 72 69 66 69 65 64 2e 20 |d and ve|rified. |
|000054f0| 54 68 65 79 20 66 69 72 | 73 74 20 69 73 73 75 65 |They fir|st issue|
|00005500| 20 61 20 43 6f 6e 74 72 | 6f 6c 20 63 61 6c 6c 20 | a Contr|ol call |
|00005510| 74 6f 20 74 68 65 20 64 | 72 69 76 65 72 20 77 69 |to the d|river wi|
|00005520| 74 68 20 74 68 65 20 63 | 73 43 6f 64 65 20 3d 20 |th the c|sCode = |
|00005530| 36 20 74 6f 20 74 65 6c | 6c 20 74 68 65 20 64 69 |6 to tel|l the di|
|00005540| 73 6b 20 64 72 69 76 65 | 72 20 74 6f 20 66 6f 72 |sk drive|r to for|
|00005550| 6d 61 74 20 74 68 65 20 | 64 72 69 76 65 2e 20 54 |mat the |drive. T|
|00005560| 68 65 6e 20 74 68 65 79 | 20 69 73 73 75 65 20 61 |hen they| issue a|
|00005570| 20 43 6f 6e 74 72 6f 6c | 20 63 61 6c 6c 20 77 69 | Control| call wi|
|00005580| 74 68 20 61 20 63 73 43 | 6f 64 65 20 3d 20 35 20 |th a csC|ode = 5 |
|00005590| 74 6f 20 74 65 6c 6c 20 | 74 68 65 20 64 72 69 76 |to tell |the driv|
|000055a0| 65 72 20 74 6f 20 76 65 | 72 69 66 79 20 74 68 65 |er to ve|rify the|
|000055b0| 20 64 72 69 76 65 2e 0d | 4f 74 68 65 72 20 4e 69 | drive..|Other Ni|
|000055c0| 66 74 79 20 54 68 69 6e | 67 73 20 74 6f 20 4b 6e |fty Thin|gs to Kn|
|000055d0| 6f 77 20 41 62 6f 75 74 | 0d 46 69 6e 64 65 72 73 |ow About|.Finders|
|000055e0| 20 34 2e 31 20 61 6e 64 | 20 6e 65 77 65 72 20 61 | 4.1 and| newer a|
|000055f0| 6c 73 6f 20 70 65 72 6d | 69 74 20 74 68 65 20 75 |lso perm|it the u|
|00005600| 73 65 72 20 74 6f 20 64 | 72 61 67 20 61 6e 79 20 |ser to d|rag any |
|00005610| 6f 6e 6c 69 6e 65 20 64 | 69 73 6b 20 74 6f 20 74 |online d|isk to t|
|00005620| 68 65 20 74 72 61 73 68 | 20 63 61 6e 2e 20 54 68 |he trash| can. Th|
|00005630| 65 20 46 69 6e 64 65 72 | 20 77 69 6c 6c 20 63 6c |e Finder| will cl|
|00005640| 65 61 6e 20 75 70 20 74 | 68 65 20 64 69 73 6b 20 |ean up t|he disk |
|00005650| 73 74 61 74 65 2c 20 69 | 73 73 75 65 20 61 6e 20 |state, i|ssue an |
|00005660| 45 6a 65 63 74 20 63 61 | 6c 6c 20 66 6f 6c 6c 6f |Eject ca|ll follo|
|00005670| 77 65 64 20 62 79 20 61 | 6e 20 55 6e 6d 6f 75 6e |wed by a|n Unmoun|
|00005680| 74 20 63 61 6c 6c 20 74 | 6f 20 74 68 65 20 64 69 |t call t|o the di|
|00005690| 73 6b 20 61 6e 64 20 74 | 68 65 6e 2c 20 61 6e 20 |sk and t|hen, an |
|000056a0| 65 76 65 6e 74 20 6c 6f | 6f 70 20 6c 61 74 65 72 |event lo|op later|
|000056b0| 2c 20 72 65 63 6c 61 69 | 6d 20 61 6c 6c 20 74 68 |, reclai|m all th|
|000056c0| 65 20 6d 65 6d 6f 72 79 | 2e 20 54 68 69 73 20 6d |e memory|. This m|
|000056d0| 65 61 6e 73 20 61 6e 79 | 20 70 72 6f 67 72 61 6d |eans any| program|
|000056e0| 2f 61 63 63 65 73 73 6f | 72 79 20 75 73 65 64 20 |/accesso|ry used |
|000056f0| 74 6f 20 6d 6f 75 6e 74 | 20 76 6f 6c 75 6d 65 73 |to mount| volumes|
|00005700| 20 73 68 6f 75 6c 64 20 | 72 65 63 6f 6e 63 69 6c | should |reconcil|
|00005710| 65 20 69 74 73 20 70 72 | 69 76 61 74 65 20 64 61 |e its pr|ivate da|
|00005720| 74 61 2c 20 6d 65 6e 75 | 73 2c 20 65 74 63 2e 20 |ta, menu|s, etc. |
|00005730| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |to the c|urrent s|
|00005740| 74 61 74 65 20 6f 66 20 | 74 68 65 20 56 43 42 20 |tate of |the VCB |
|00005750| 71 75 65 75 65 2e 20 54 | 68 65 73 65 20 46 69 6e |queue. T|hese Fin|
|00005760| 64 65 72 73 20 61 6c 73 | 6f 20 6e 6f 74 69 63 65 |ders als|o notice|
|00005770| 20 69 66 20 61 20 76 6f | 6c 75 6d 65 20 64 69 73 | if a vo|lume dis|
|00005780| 61 70 70 65 61 72 73 20 | 61 6e 64 20 77 69 6c 6c |appears |and will|
|00005790| 20 63 6c 65 61 6e 20 75 | 70 20 73 61 66 65 6c 79 | clean u|p safely|
|000057a0| 2e 20 42 75 74 2c 20 62 | 65 63 61 75 73 65 20 6f |. But, b|ecause o|
|000057b0| 66 20 61 20 71 75 69 72 | 6b 20 69 6e 20 74 69 6d |f a quir|k in tim|
|000057c0| 69 6e 67 2c 20 61 20 6d | 6f 75 6e 74 20 6d 61 6e |ing, a m|ount man|
|000057d0| 61 67 65 72 20 63 61 6e | 6e 6f 74 20 75 6e 6d 6f |ager can|not unmo|
|000057e0| 75 6e 74 20 6f 6e 65 20 | 76 6f 6c 75 6d 65 20 74 |unt one |volume t|
|000057f0| 68 65 6e 20 6d 6f 75 6e | 74 20 61 6e 6f 74 68 65 |hen moun|t anothe|
|00005800| 72 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 3b 20 69 |r immedi|ately; i|
|00005810| 74 20 6d 75 73 74 20 77 | 61 69 74 20 66 6f 72 20 |t must w|ait for |
|00005820| 74 68 65 20 46 69 6e 64 | 65 72 20 74 6f 20 6c 6f |the Find|er to lo|
|00005830| 6f 70 20 61 72 6f 75 6e | 64 20 61 6e 64 20 63 6c |op aroun|d and cl|
|00005840| 65 61 6e 20 75 70 20 74 | 68 65 20 66 69 72 73 74 |ean up t|he first|
|00005850| 20 64 69 73 6b 20 62 65 | 66 6f 72 65 20 69 74 20 | disk be|fore it |
|00005860| 6e 6f 74 69 63 65 73 20 | 74 68 65 20 73 65 63 6f |notices |the seco|
|00005870| 6e 64 2e 20 28 49 74 20 | 73 68 6f 75 6c 64 20 68 |nd. (It |should h|
|00005880| 61 76 65 20 63 6c 65 61 | 6e 65 64 20 75 70 20 6f |ave clea|ned up o|
|00005890| 6c 64 20 6f 6e 65 73 20 | 62 65 66 6f 72 65 20 69 |ld ones |before i|
|000058a0| 74 20 6e 6f 74 69 63 65 | 73 20 6e 65 77 20 6f 6e |t notice|s new on|
|000058b0| 65 73 2c 20 62 75 74 20 | 69 74 20 64 6f 65 73 6e |es, but |it doesn|
|000058c0| d5 74 2e 29 0d 46 69 6e | 64 65 72 73 20 35 2e 30 |.t.).Fin|ders 5.0|
|000058d0| 20 61 6e 64 20 6e 65 77 | 65 72 20 61 6c 6c 6f 77 | and new|er allow|
|000058e0| 20 79 6f 75 20 74 6f 20 | 64 72 61 67 20 74 68 65 | you to |drag the|
|000058f0| 20 73 74 61 72 74 75 70 | 20 64 69 73 6b 20 74 6f | startup| disk to|
|00005900| 20 74 68 65 20 74 72 61 | 73 68 3b 20 46 69 6e 64 | the tra|sh; Find|
|00005910| 65 72 20 34 2e 31 20 6a | 75 73 74 20 69 67 6e 6f |er 4.1 j|ust igno|
|00005920| 72 65 64 20 79 6f 75 2e | 20 46 69 6e 64 65 72 73 |red you.| Finders|
|00005930| 20 35 2e 30 20 61 6e 64 | 20 6e 65 77 65 72 20 74 | 5.0 and| newer t|
|00005940| 61 6b 65 20 74 68 65 20 | 76 6f 6c 75 6d 65 20 6f |ake the |volume o|
|00005950| 66 66 6c 69 6e 65 20 61 | 73 20 69 66 20 79 6f 75 |ffline a|s if you|
|00005960| 20 68 61 64 20 63 68 6f | 73 65 6e 20 45 6a 65 63 | had cho|sen Ejec|
|00005970| 74 2e 0d 54 42 20 31 31 | 20 2d 20 47 65 74 4e 65 |t..TB 11| - GetNe|
|00005980| 78 74 45 76 65 6e 74 3b | 20 42 6c 69 6e 6b 69 6e |xtEvent;| Blinkin|
|00005990| 67 20 41 70 70 6c 65 20 | 4d 65 6e 75 0d 54 6f 6f |g Apple |Menu.Too|
|000059a0| 6c 62 6f 78 09 0d 52 65 | 76 69 73 65 64 20 62 79 |lbox..Re|vised by|
|000059b0| 3a 09 09 4d 61 72 63 68 | 20 31 39 38 38 0d 57 72 |:..March| 1988.Wr|
|000059c0| 69 74 74 65 6e 20 62 79 | 3a 09 52 69 63 6b 20 42 |itten by|:.Rick B|
|000059d0| 6c 61 69 72 09 41 75 67 | 75 73 74 20 31 39 38 36 |lair.Aug|ust 1986|
|000059e0| 0d 57 68 65 72 65 69 6e | 20 61 72 63 61 6e 65 20 |.Wherein| arcane |
|000059f0| 6d 79 73 74 65 72 69 65 | 73 20 61 72 65 20 75 6e |mysterie|s are un|
|00005a00| 72 61 76 65 6c 65 64 20 | 73 6f 20 79 6f 75 20 63 |raveled |so you c|
|00005a10| 61 6e 20 6d 61 6b 65 20 | 74 68 65 20 41 6c 61 72 |an make |the Alar|
|00005a20| 6d 20 43 6c 6f 63 6b 20 | 28 6f 72 20 61 20 73 69 |m Clock |(or a si|
|00005a30| 6d 69 6c 61 72 20 64 65 | 73 6b 20 61 63 63 65 73 |milar de|sk acces|
|00005a40| 73 6f 72 79 29 20 62 6c | 69 6e 6b 20 74 68 65 20 |sory) bl|ink the |
|00005a50| 41 70 70 6c 65 20 6d 65 | 6e 75 20 61 74 20 74 68 |Apple me|nu at th|
|00005a60| 65 20 61 70 70 6f 69 6e | 74 65 64 20 73 65 63 6f |e appoin|ted seco|
|00005a70| 6e 64 2e 20 41 6c 73 6f | 2c 20 77 68 79 20 47 65 |nd. Also|, why Ge|
|00005a80| 74 4e 65 78 74 45 76 65 | 6e 74 20 69 73 20 61 20 |tNextEve|nt is a |
|00005a90| 67 6f 6f 64 20 74 68 69 | 6e 67 2e 0d 54 68 65 20 |good thi|ng..The |
|00005aa0| 6f 62 76 69 6f 75 73 0d | 44 6f 6e d5 74 20 64 69 |obvious.|Don.t di|
|00005ab0| 73 61 62 6c 65 20 69 6e | 74 65 72 72 75 70 74 73 |sable in|terrupts|
|00005ac0| 20 77 69 74 68 69 6e 20 | 61 6e 20 61 70 70 6c 69 | within |an appli|
|00005ad0| 63 61 74 69 6f 6e 21 20 | 54 68 65 72 65 20 77 69 |cation! |There wi|
|00005ae0| 6c 6c 20 61 6c 6d 6f 73 | 74 20 63 65 72 74 61 69 |ll almos|t certai|
|00005af0| 6e 6c 79 20 63 6f 6d 65 | 20 61 20 74 69 6d 65 20 |nly come| a time |
|00005b00| 28 6f 72 20 4d 61 63 69 | 6e 74 6f 73 68 29 20 77 |(or Maci|ntosh) w|
|00005b10| 68 65 72 65 20 79 6f 75 | 20 77 6f 6e d5 74 20 62 |here you| won.t b|
|00005b20| 65 20 61 62 6c 65 20 74 | 6f 20 63 68 61 6e 67 65 |e able t|o change|
|00005b30| 20 74 68 65 20 69 6e 74 | 65 72 72 75 70 74 20 6d | the int|errupt m|
|00005b40| 61 73 6b 20 62 65 63 61 | 75 73 65 20 74 68 65 20 |ask beca|use the |
|00005b50| 70 72 6f 63 65 73 73 6f | 72 20 69 73 20 72 75 6e |processo|r is run|
|00005b60| 6e 69 6e 67 20 69 6e 20 | 75 73 65 72 20 6d 6f 64 |ning in |user mod|
|00005b70| 65 2e 20 54 68 65 20 6f | 6e 65 2d 73 65 63 6f 6e |e. The o|ne-secon|
|00005b80| 64 20 69 6e 74 65 72 72 | 75 70 74 20 69 73 20 75 |d interr|upt is u|
|00005b90| 73 65 64 20 74 6f 20 62 | 6c 69 6e 6b 20 74 68 65 |sed to b|link the|
|00005ba0| 20 61 70 70 6c 65 2e 0d | 54 68 65 20 6e 6f 74 2d | apple..|The not-|
|00005bb0| 73 6f 2d 6f 62 76 69 6f | 75 73 0d 59 6f 75 20 6d |so-obvio|us.You m|
|00005bc0| 75 73 74 20 63 61 6c 6c | 20 47 65 74 4e 65 78 74 |ust call| GetNext|
|00005bd0| 45 76 65 6e 74 20 70 65 | 72 69 6f 64 69 63 61 6c |Event pe|riodical|
|00005be0| 6c 79 2e 20 47 65 74 4e | 65 78 74 45 76 65 6e 74 |ly. GetN|extEvent|
|00005bf0| 20 75 73 65 73 20 61 20 | 66 69 6c 74 65 72 20 28 | uses a |filter (|
|00005c00| 47 4e 45 20 66 69 6c 74 | 65 72 29 20 77 68 69 63 |GNE filt|er) whic|
|00005c10| 68 20 61 6c 6c 6f 77 73 | 20 66 6f 72 20 61 20 72 |h allows| for a r|
|00005c20| 6f 75 74 69 6e 65 20 74 | 6f 20 62 65 20 69 6e 73 |outine t|o be ins|
|00005c30| 74 61 6c 6c 65 64 20 77 | 68 69 63 68 20 6f 76 65 |talled w|hich ove|
|00005c40| 72 72 69 64 65 73 20 28 | 6f 72 20 61 75 67 6d 65 |rrides (|or augme|
|00005c50| 6e 74 73 29 20 74 68 65 | 20 62 65 68 61 76 69 6f |nts) the| behavio|
|00005c60| 72 20 6f 66 20 74 68 65 | 20 73 79 73 74 65 6d 2e |r of the| system.|
|00005c70| 20 54 68 65 20 47 4e 45 | 20 66 69 6c 74 65 72 20 | The GNE| filter |
|00005c80| 69 73 20 69 6e 73 74 61 | 6c 6c 65 64 20 62 79 20 |is insta|lled by |
|00005c90| 70 6f 69 6e 74 69 6e 67 | 20 74 68 65 20 6c 6f 77 |pointing| the low|
|00005ca0| 2d 6d 65 6d 6f 72 79 20 | 67 6c 6f 62 61 6c 20 6a |-memory |global j|
|00005cb0| 47 4e 45 46 69 6c 74 65 | 72 20 28 61 20 6c 6f 6e |GNEFilte|r (a lon|
|00005cc0| 67 20 77 6f 72 64 20 61 | 74 20 24 32 39 41 29 20 |g word a|t $29A) |
|00005cd0| 74 6f 20 74 68 65 20 72 | 6f 75 74 69 6e 65 2e 20 |to the r|outine. |
|00005ce0| 41 66 74 65 72 20 61 6c | 6c 20 6f 74 68 65 72 20 |After al|l other |
|00005cf0| 47 4e 45 20 70 72 6f 63 | 65 73 73 69 6e 67 20 69 |GNE proc|essing i|
|00005d00| 73 20 63 6f 6d 70 6c 65 | 74 65 2c 20 74 68 65 20 |s comple|te, the |
|00005d10| 72 6f 75 74 69 6e 65 20 | 77 69 6c 6c 20 62 65 20 |routine |will be |
|00005d20| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 41 31 20 70 |called w|ith A1 p|
|00005d30| 6f 69 6e 74 69 6e 67 20 | 74 6f 20 74 68 65 20 65 |ointing |to the e|
|00005d40| 76 65 6e 74 20 72 65 63 | 6f 72 64 20 61 6e 64 20 |vent rec|ord and |
|00005d50| 44 30 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |D0 conta|ining th|
|00005d60| 65 20 62 6f 6f 6c 65 61 | 6e 20 72 65 73 75 6c 74 |e boolea|n result|
|00005d70| 2e 20 54 68 65 20 66 69 | 6c 74 65 72 20 6d 61 79 |. The fi|lter may|
|00005d80| 20 74 68 65 6e 20 6d 6f | 64 69 66 79 20 74 68 65 | then mo|dify the|
|00005d90| 20 65 76 65 6e 74 20 72 | 65 63 6f 72 64 20 6f 72 | event r|ecord or|
|00005da0| 20 63 68 61 6e 67 65 20 | 74 68 65 20 66 75 6e 63 | change |the func|
|00005db0| 74 69 6f 6e 20 72 65 73 | 75 6c 74 20 62 79 20 61 |tion res|ult by a|
|00005dc0| 6c 74 65 72 69 6e 67 20 | 74 68 65 20 77 6f 72 64 |ltering |the word|
|00005dd0| 20 6f 6e 20 74 68 65 20 | 73 74 61 63 6b 20 61 74 | on the |stack at|
|00005de0| 20 34 28 41 37 29 2e 20 | 54 68 69 73 20 77 6f 72 | 4(A7). |This wor|
|00005df0| 64 20 77 69 6c 6c 20 6d | 61 74 63 68 20 44 30 20 |d will m|atch D0 |
|00005e00| 69 6e 69 74 69 61 6c 6c | 79 2c 20 6f 66 20 63 6f |initiall|y, of co|
|00005e10| 75 72 73 65 2e 0d 41 20 | 47 4e 45 20 66 69 6c 74 |urse..A |GNE filt|
|00005e20| 65 72 20 69 73 20 75 73 | 65 64 20 74 6f 20 64 6f |er is us|ed to do|
|00005e30| 20 74 68 65 20 62 6c 69 | 6e 6b 69 6e 67 20 77 68 | the bli|nking wh|
|00005e40| 65 6e 20 74 68 65 20 69 | 6e 74 65 72 72 75 70 74 |en the i|nterrupt|
|00005e50| 20 68 61 6e 64 6c 65 72 | 20 68 61 73 20 61 6e 6e | handler| has ann|
|00005e60| 6f 75 6e 63 65 64 20 74 | 68 61 74 20 74 68 65 20 |ounced t|hat the |
|00005e70| 6d 6f 6d 65 6e 74 20 69 | 73 20 61 74 20 68 61 6e |moment i|s at han|
|00005e80| 64 2e 20 47 65 74 4f 53 | 45 76 65 6e 74 20 77 6f |d. GetOS|Event wo|
|00005e90| 6e d5 74 20 64 6f 2e 20 | 49 66 20 79 6f 75 20 64 |n.t do. |If you d|
|00005ea0| 6f 6e d5 74 20 68 61 76 | 65 20 61 20 73 74 61 6e |on.t hav|e a stan|
|00005eb0| 64 61 72 64 20 6d 61 69 | 6e 20 65 76 65 6e 74 20 |dard mai|n event |
|00005ec0| 6c 6f 6f 70 2c 20 69 74 | 20 69 73 20 67 65 6e 65 |loop, it| is gene|
|00005ed0| 72 61 6c 6c 79 20 61 20 | 67 6f 6f 64 20 69 64 65 |rally a |good ide|
|00005ee0| 61 20 74 6f 20 67 69 76 | 65 20 47 65 74 4e 65 78 |a to giv|e GetNex|
|00005ef0| 74 45 76 65 6e 74 20 28 | 61 6e 64 20 53 79 73 74 |tEvent (|and Syst|
|00005f00| 65 6d 54 61 73 6b 2c 20 | 74 6f 6f 29 20 61 20 63 |emTask, |too) a c|
|00005f10| 61 6c 6c 20 77 68 65 6e | 65 76 65 72 20 79 6f 75 |all when|ever you|
|00005f20| 20 68 61 76 65 20 61 6e | 79 20 69 64 6c 65 20 74 | have an|y idle t|
|00005f30| 69 6d 65 2e 20 47 65 74 | 4e 65 78 74 45 76 65 6e |ime. Get|NextEven|
|00005f40| 74 20 d2 65 78 74 72 61 | d3 20 73 65 72 76 69 63 |t .extra|. servic|
|00005f50| 65 73 20 69 6e 63 6c 75 | 64 65 2c 20 62 75 74 20 |es inclu|de, but |
|00005f60| 61 72 65 6e d5 74 20 6c | 69 6d 69 74 65 64 20 74 |aren.t l|imited t|
|00005f70| 6f 2c 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |o, the f|ollowing|
|00005f80| 3a 0d 31 2e 09 43 61 6c | 6c 69 6e 67 20 74 68 65 |:.1..Cal|ling the|
|00005f90| 20 47 4e 45 20 66 69 6c | 74 65 72 2e 0d 32 2e 09 | GNE fil|ter..2..|
|00005fa0| 52 65 6d 6f 76 69 6e 67 | 20 6c 69 6e 67 65 72 69 |Removing| lingeri|
|00005fb0| 6e 67 20 64 69 73 6b 2d | 73 77 69 74 63 68 65 64 |ng disk-|switched|
|00005fc0| 20 77 69 6e 64 6f 77 73 | 20 28 75 6e 63 6f 6d 6d | windows| (uncomm|
|00005fd0| 6f 6e 20 75 6e 6c 65 73 | 73 20 6d 65 6d 6f 72 79 |on unles|s memory|
|00005fe0| 20 69 73 20 20 74 69 67 | 68 74 29 2e 0d 33 2e 09 | is tig|ht)..3..|
|00005ff0| 4d 61 6b 69 6e 67 20 57 | 69 6e 64 6f 77 20 4d 61 |Making W|indow Ma|
|00006000| 6e 61 67 65 72 20 61 63 | 74 69 76 61 74 65 2c 20 |nager ac|tivate, |
|00006010| 64 65 61 63 74 69 76 61 | 74 65 20 61 6e 64 20 75 |deactiva|te and u|
|00006020| 70 64 61 74 65 20 65 76 | 65 6e 74 73 20 68 61 70 |pdate ev|ents hap|
|00006030| 70 65 6e 2e 0d 34 2e 09 | 47 65 74 74 69 6e 67 20 |pen..4..|Getting |
|00006040| 76 61 72 69 6f 75 73 20 | 65 76 65 6e 74 73 20 66 |various |events f|
|00006050| 72 6f 6d 20 61 20 6a 6f | 75 72 6e 61 6c 69 6e 67 |rom a jo|urnaling|
|00006060| 20 64 72 69 76 65 72 20 | 77 68 65 6e 20 6f 6e 65 | driver |when one|
|00006070| 20 69 73 20 70 6c 61 79 | 69 6e 67 2e 0d 35 2e 09 | is play|ing..5..|
|00006080| 47 69 76 69 6e 67 20 53 | 79 73 74 65 6d 45 76 65 |Giving S|ystemEve|
|00006090| 6e 74 20 61 20 63 68 61 | 6e 63 65 20 61 74 20 65 |nt a cha|nce at e|
|000060a0| 61 63 68 20 65 76 65 6e | 74 2e 0d 36 2e 09 52 75 |ach even|t..6..Ru|
|000060b0| 6e 6e 69 6e 67 20 63 6f | 6d 6d 61 6e 64 2d 73 68 |nning co|mmand-sh|
|000060c0| 69 66 74 20 66 75 6e 63 | 74 69 6f 6e 20 6b 65 79 |ift func|tion key|
|000060d0| 20 72 6f 75 74 69 6e 65 | 73 20 28 65 2e 67 2e 20 | routine|s (e.g. |
|000060e0| 63 6f 6d 6d 61 6e 64 2d | 73 68 69 66 74 2d 34 20 |command-|shift-4 |
|000060f0| 74 6f 20 70 72 69 6e 74 | 20 74 68 65 20 73 63 72 |to print| the scr|
|00006100| 65 65 6e 20 74 6f 20 61 | 6e 20 49 6d 61 67 65 57 |een to a|n ImageW|
|00006110| 72 69 74 65 72 29 2e 0d | 54 68 65 20 6d 6f 72 65 |riter)..|The more|
|00006120| 20 73 75 62 74 6c 65 0d | 57 68 65 6e 20 74 68 65 | subtle.|When the|
|00006130| 20 28 64 65 66 61 75 6c | 74 29 20 47 4e 45 20 66 | (defaul|t) GNE f|
|00006140| 69 6c 74 65 72 20 73 65 | 65 73 20 74 68 61 74 20 |ilter se|es that |
|00006150| 74 68 65 20 69 6e 74 65 | 72 72 75 70 74 20 68 61 |the inte|rrupt ha|
|00006160| 6e 64 6c 65 72 20 68 61 | 73 20 73 65 74 20 74 68 |ndler ha|s set th|
|00006170| 65 20 d2 74 69 6d 65 20 | 74 6f 20 62 6c 69 6e 6b |e .time |to blink|
|00006180| d3 20 66 6c 61 67 2c 20 | 69 74 20 6c 6f 6f 6b 73 |. flag, |it looks|
|00006190| 20 61 74 20 74 68 65 20 | 66 69 72 73 74 20 6d 65 | at the |first me|
|000061a0| 6e 75 20 69 6e 20 4d 65 | 6e 75 4c 69 73 74 2e 20 |nu in Me|nuList. |
|000061b0| 54 68 65 20 74 69 74 6c | 65 20 6f 66 20 74 68 61 |The titl|e of tha|
|000061c0| 74 20 6d 65 6e 75 20 6d | 75 73 74 20 63 6f 6e 73 |t menu m|ust cons|
|000061d0| 69 73 74 20 73 6f 6c 65 | 6c 79 20 6f 66 20 74 68 |ist sole|ly of th|
|000061e0| 65 20 d2 61 70 70 6c 65 | d3 20 63 68 61 72 61 63 |e .apple|. charac|
|000061f0| 74 65 72 20 6f 72 20 6e | 6f 20 62 6c 69 6e 6b 69 |ter or n|o blinki|
|00006200| 6e 67 20 77 69 6c 6c 20 | 6f 63 63 75 72 2e 20 49 |ng will |occur. I|
|00006210| 74 20 72 65 61 6c 6c 79 | 20 6a 75 73 74 20 6c 6f |t really| just lo|
|00006220| 6f 6b 73 20 61 74 20 74 | 68 65 20 66 69 72 73 74 |oks at t|he first|
|00006230| 20 77 6f 72 64 20 6f 66 | 20 74 68 65 20 73 74 72 | word of| the str|
|00006240| 69 6e 67 20 74 6f 20 73 | 65 65 20 69 66 20 69 74 |ing to s|ee if it|
|00006250| 20 69 73 20 24 30 31 31 | 34 2e 20 54 68 69 73 20 | is $011|4. This |
|00006260| 69 73 20 61 20 50 61 73 | 63 61 6c 20 73 74 72 69 |is a Pas|cal stri|
|00006270| 6e 67 20 77 68 69 63 68 | 20 68 61 73 20 6f 6e 6c |ng which| has onl|
|00006280| 79 20 74 68 65 20 24 31 | 34 20 d2 61 70 70 6c 65 |y the $1|4 .apple|
|00006290| d3 20 63 68 61 72 61 63 | 74 65 72 20 69 6e 20 69 |. charac|ter in i|
|000062a0| 74 2e 20 53 6f 20 79 6f | 75 20 6d 75 73 6e d5 74 |t. So yo|u musn.t|
|000062b0| 20 68 61 76 65 20 61 6e | 79 20 73 70 61 63 65 73 | have an|y spaces|
|000062c0| 20 6f 72 20 61 6e 79 20 | 6f 74 68 65 72 20 63 68 | or any |other ch|
|000062d0| 61 72 61 63 74 65 72 73 | 20 69 6e 20 74 68 65 20 |aracters| in the |
|000062e0| 74 69 74 6c 65 20 6f 66 | 20 79 6f 75 72 20 66 69 |title of| your fi|
|000062f0| 72 73 74 20 6d 65 6e 75 | 20 6f 72 20 79 6f 75 d5 |rst menu| or you.|
|00006300| 6c 6c 20 67 65 74 20 6e | 6f 20 62 6c 69 6e 6b 69 |ll get n|o blinki|
|00006310| 6e d5 20 72 65 73 75 6c | 74 73 2e 0d 46 75 72 74 |n. resul|ts..Furt|
|00006320| 68 65 72 20 52 65 66 65 | 72 65 6e 63 65 3a 0d a5 |her Refe|rence:..|
|00006330| 09 54 68 65 20 4d 65 6e | 75 20 4d 61 6e 61 67 65 |.The Men|u Manage|
|00006340| 72 0d a5 09 54 68 65 20 | 54 6f 6f 6c 62 6f 78 20 |r...The |Toolbox |
|00006350| 45 76 65 6e 74 20 4d 61 | 6e 61 67 65 72 0d a5 09 |Event Ma|nager...|
|00006360| 54 68 65 20 44 65 73 6b | 20 4d 61 6e 61 67 65 72 |The Desk| Manager|
|00006370| 0d 54 42 20 31 32 20 2d | 20 4b 65 79 20 4d 61 70 |.TB 12 -| Key Map|
|00006380| 70 69 6e 67 0d 54 6f 6f | 6c 62 6f 78 09 0d 52 65 |ping.Too|lbox..Re|
|00006390| 76 69 73 65 64 20 62 79 | 3a 09 4a 69 6d 20 4c 75 |vised by|:.Jim Lu|
|000063a0| 74 68 65 72 2c 20 50 65 | 74 65 72 20 45 64 62 65 |ther, Pe|ter Edbe|
|000063b0| 72 67 2c 20 26 20 49 6d | 72 61 6e 20 53 61 79 65 |rg, & Im|ran Saye|
|000063c0| 65 64 09 46 65 62 72 75 | 61 72 79 20 31 39 39 31 |ed.Febru|ary 1991|
|000063d0| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 43 61 6d |.Written| by:.Cam|
|000063e0| 65 72 6f 6e 20 42 69 72 | 73 65 09 53 65 70 74 65 |eron Bir|se.Septe|
|000063f0| 6d 62 65 72 20 31 39 38 | 37 0d 54 68 69 73 20 54 |mber 198|7.This T|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.